Dostupnost ve verzích:
Remove a portion of the array and replace it with something else
|Parametr||Datový typ||Výchozí hodnota||Poznámka|
||The input array.|
||If offset is positive then the start of removed portion is at that offset from the beginning of the input array. If offset is negative then it starts that far from the end of the input array.|
||null,||If length is omitted, removes everything from offset to the end of the array. If length is specified and is positive, then that many elements will be removed. If length is specified and is negative then the end of the removed portion will be that many elements from the end of the array. Tip: to remove everything from offset to the end of the array when replacement is also specified, use count($input) for length.|
||null||If replacement array is specified, then the removed elements are replaced with elements from this array.|
the array consisting of the extracted elements.
Pomohl Vám tento článek?