Q:

What will be the output of the following PHP code?

0

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));
?>

  1. Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 )
  2. Array ( [peter] => 35 [ben] => 37 [joe] => 43 )
  3. Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 )
  4. Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 )

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 )

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now