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("Harry" => "21", "Ron" => "23","Malfoy" => "21");
array_change_key_case($age, CASE_UPPER);
array_pop($age);
print_r($age);
?>

  1. Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 )
  2. Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 )
  3. Array ( [HARRY] => 21 [RON] => 23 )
  4. Array ( [Harry] => 21 [Ron] => 23 )

All Answers

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

 (c).Array ( [HARRY] => 21 [RON] => 23 )

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