March 2002
Intermediate to advanced
528 pages
21h 29m
English
array_slice
array array_slice(arrayarray, intoffset[, intlength])
Returns an array containing a set of elements pulled from the given
array. If offset is a positive number,
elements starting from that index onward are used; if
offset is a negative number, elements
starting that many elements from the end of the array are used. If
the third argument is provided and is a positive number, that many
elements are returned; if negative, the sequence stops that many
elements from the end of the array. If the third argument is omitted,
the sequence returned contains all elements from the offset to the
end of the array.