(PHP 4, PHP 5, PHP 7)
Remove a portion of the array and replace it with something else
array array_splice ( array &$input, int $offset [, int $length = 0 [, mixed $replacement = array() ]] )
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.
Note: If replacement is no