## 例

`

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

`

## 説明

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 not an array, it will be typecast to one (i.e. (array) $parameter). This may result in unexpected behavior when using an object or NULL replacement.

## 戻り値

Returns the array consisting of the extracted elements.