What Will Be The Output Of The Following Php Codep Pre Langphp #51
What will be the output of the following PHP code?</p> <pre><code class="language-php" line="1"> <?php $age = array("Harry" => "21", "Ron" => "23","Malfoy" => "21"); array_pop($age); print_r(array_change_key_case($age, CASE_UPPER)); ?> </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs107 PHP: Hypertext Preprocessor. It can also be found in gs gs107 PHP Array - PHP Array - Quiz No.3.
What will be the output of the following PHP code?
<?php $age = array("Harry" => "21", "Ron" => "23","Malfoy" => "21"); array_pop($age); print_r(array_change_key_case($age, CASE_UPPER)); ?>
Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 )
Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 )
Array ( [HARRY] => 21 [RON] => 23 )
Array ( [Harry] => 21 [Ron] => 23 )