

MCQOPTIONS
Saved Bookmarks
1. |
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)); ?> |
A. | Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) |
B. | Array ( [peter] => 35 [ben] => 37 [joe] => 43 ) |
C. | Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 ) |
D. | Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 ) |
Answer» D. Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 ) | |