|
array_spliceRemove a portion of the array and replace it with something else Description
array array_splice
( array
&$input
, int $offset
[, int $length = count($input)
[, mixed $replacement = array()
]] )
Removes the elements designated by
Note that numeric keys in
Parameters
Return ValuesReturns an array consisting of the extracted elements. Examples
Example #1 array_splice examples
<?php
Example #2 array_splice examples The following statements change the values of $input the same way:
<?php See Also
|