P

Pritvik • 5.07K Points
Tutor III

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

Code:
<?php 
    $arr = array ("A", "B", "C", "D", "E");
    $splice = array_splice ($arr, 2);
    print_r ($arr);
?>
  • (A) Array([0] => D, [1] => E)
  • (B) Array([0] => A, [1] => B)
  • (C) Array([3] => D, [4] => E)
  • (D) Array([0] => C, [1] => D)
  • Correct Answer - Option(B)
  • Views: 126
  • Filed under category PHP

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.


Question analytics