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