-
What will be the output of the following PHP code ?
<?php
$Student = array("Ajit" => "23", "Rahul" => "22","Ats" => "23");
array_pop($Student);
print_r(array_change_key_case($Student, CASE_UPPER));
?>
-
- Error
-
Array
(
[AJIT] => 23
) - Nothing
-
Array
(
[AJIT] => 23
[RAHUL] => 22
) - None of these
Correct Option: D
The array_change_key_case() function changes all keys in an array to lowercase or uppercase and arry_pop() removes last element.