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] =&gt; 35 [Ben] =&gt; 37 [Joe] =&gt; 43 )
B. Array ( [peter] =&gt; 35 [ben] =&gt; 37 [joe] =&gt; 43 )
C. Array ( [PETER] =&gt; 35 [BEN] =&gt; 37 [JOE] =&gt; 43 )
D. Array ( [PeTeR] =&gt; 35 [BeN] =&gt; 37 [Joe] =&gt; 43 )
Answer» D. Array ( [PeTeR] =&gt; 35 [BeN] =&gt; 37 [Joe] =&gt; 43 )


Discussion

No Comment Found