Ds\Vector::slice

Ds\Vector::slice

(PECL ds >= 1.0.0)

Ds\Vector::slice Returns a sub-vector of a given range.

Description

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

Creates a sub-vector of a given range.

Parameters

index

The index at which the sub-vector starts.

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

登录查看完整内容