?
What will be the output of the following PHP code?
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));
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login