πŸ“Š PHP
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)
πŸ’¬ Discuss
βœ… Correct Answer: (C) Array([0] => Alex [1] => Bob)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
171
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Pritvik
Publisher
πŸ“ˆ
97%
Success Rate