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);
?>
β
Correct Answer: (C)
Array([0] => Emily [1] => Ali)