array_slice

Example

 array array_slice ( array $array , int $offset [, int $length [, bool $preserve_keys = false ]] ) 

Description

array_slice() returns the sequence of elements from the array array as specified by the offset and length parameters. Note: This function will reset() the array pointer of the input array after use.

Return Values

Returns the slice.