A

Admin • 833K Points
Coach

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

Code:
<?php
$a = array("Alex", "Bob", "Emily");
array_pop($a);
print_r($a);
?>
  • (A) Array([0] => Alex [1] => Bob [2] => Emily)
  • (B) Array([0] => Bob [1] => Emily)
  • (C) Array([0] => Alex [1] => Bob)
  • (D) Array([1] => Alex [2] => Bob)
  • Correct Answer - Option(C)
  • Views: 19
  • 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.