A

Admin • 832.27K Points
Coach

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

Code:
<?php
$names = array("Alex", "Bob", "Emily", "Ali");
$res = array_slice ($names, 2);
print_r ($res);
?>
  • (A) Array([0] => Bob [1] => Emily [2] => Ali)
  • (B) Array([0] => Ali [1] => Emily)
  • (C) Array([0] => Emily [1] => Ali)
  • (D) None of the above
  • Correct Answer - Option(C)
  • Views: 10
  • 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.