1.

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

A. Array ( [Harry] =&gt; 21 [Ron] =&gt; 23 [Malfoy] =&gt; 21 )
B. Array ( [HARRY] =&gt; 21 [RON] =&gt; 23 [MALFOY] =&gt; 21 )
C. Array ( [HARRY] =&gt; 21 [RON] =&gt; 23 )
D. Array ( [Harry] =&gt; 21 [Ron] =&gt; 23 )
Answer» D. Array ( [Harry] =&gt; 21 [Ron] =&gt; 23 )


Discussion

No Comment Found