A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 14
  • 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.