πŸ“Š PHP
Q. What is the result of the following PHP code?
Code:
<?php
    $arr = array("A"=>"Alex", "B"=>"Bob", "E"=>"Emily");
    echo array_shift($arr);
    print_r ($arr);
?>
  • (A) Array([B] => Bob [E] => Emily)
  • (B) Array([A] => Alex [B] => Bob [E] => Emily)
  • (C) AlexArray([B] => Bob [E] => Emily)
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) AlexArray([B] => Bob [E] => Emily)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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