Removes the elements designated by $offset and $length from the $input array, and replaces them with the elements of the $replacement array, if supplied.

Note that numeric keys in $input are not preserved.

declaration of array_splice

array array_splice ( array &$input , int $offset [, int $length ] [, mixed $replacement ] )

test array_splice online

share array_splice

comments for array_splice

be the first

No comments so far for array_splice(). Leave yours as first below.


Leave your comment