$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);
Knowledge:: Sharing Is Learning
$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);
Begin typing your search term above and press enter to search. Press ESC to cancel.