A

Admin • 832.27K Points
Coach

Q. What is the result of the following PHP code?

Code:
<?php
$age = array("alex"=>"18", "bob"=>"25", "emily"=>"55");
print_r(array_change_key_case($age, CASE_UPPER));
?>
  • (A) Array([Alex] => 18, [Bob] => 25, [Emily] => 55)
  • (B) Array([ALEX] => 18, [BOB] => 25, [EMILY] => 55)
  • (C) Array([alex] => 18, [bob] => 25, [emily] => 55)
  • (D) None of the above
  • Correct Answer - Option(B)
  • Views: 12
  • Filed under category PHP
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.