4.
$userId = $_POST["userId"];
$pswd = $_POST["password"];
if ($password[$userId] == $pswd) {
echo "Password is same";
} else {
echo "Passwords are not same";
}
5. c) both a and b
Explanation:
Identifiers can be of any length and can consist of letters, numbers, and underscores. Identifiers cannot begin with a digit. In PHP, identifiers are case sensitive.
php QUESTION 4 We have an associative array storing passwords of each user write PHP code...