Ds\Set::slice

Ds\Set::slice

(PECL ds >= 1.0.0)

Ds\Set::slice Returns a sub-set of a given range.

Description

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

Creates a sub-set of a given range.

Parameters

index

The index at which the sub-set starts.

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

length

登录查看完整内容