πŸ“Š PHP
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) Array([ALEX] => 18, [BOB] => 25, [EMILY] => 55)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
155
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Pritvik
Publisher
πŸ“ˆ
96%
Success Rate