Ds\Sequence::slice

Ds\Sequence::slice

(PECL ds >= 1.0.0)

Ds\Sequence::slice Returns a sub-sequence of a given range.

Description

abstract public Ds\Sequence Ds\Sequence::slice ( int $index [, int $length ] )

Creates a sub-sequence of a given range.

Parameters

index

The index at which the sub-sequence starts.

If positive, the sequence will start at that index in the sequence. If negative, the sequence will start that far from the end.