Name
array_splice
Synopsis
array array_splice(arrayarray
, intoffset
[, intlength
[, arrayreplacement
]])
Selects a sequence of elements using the same rules as
array_slice( )
, but instead of
being returned, those elements are either removed or, if the fourth
argument is provided, replaced with that array. An array containing
the removed (or replaced) elements is returned.
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.