array_slice


$input = array("red", "green", "blue", "yellow");
$splice1=array_splice($input, 1, count($input), "orange");
$splice2=array_splice($input, 1, count($input)-1, "mango");
print_r($splice1);
echo '


'; print_r($splice2);

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top