What will be the output of the following PHP code?
<?php
$fruits = array ("apple", "mango", "peach", "pear",
"orange");
$subset = array_slice ($fruits, 2);
print_r ($subset);
?>
- Array ( [0] => peach )
- Array ( [0] => apple [1] => mango [2] => peach )
- Array ( [0] => apple [1] => mango )
- Array ( [0] => peach [1] => pear [2] => orange )
(d).Array ( [0] => peach [1] => pear [2] => orange )
need an explanation for this answer? contact us directly to get an explanation for this answer