ExamVeda
Login
Home
This question belongs to PHP Arrays
Arrays
?

What will be the output of the following PHP code?
<?php
$age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");
print_r(array_change_key_case($age, CASE_UPPER));
?>

Answer & Solution
Correct Answer: Option C
The array_change_key_case() function changes all keys in an array to lowercase or uppercase.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.