|
Ds\Sequence::sliceReturns a sub-sequence of a given range 説明
abstract public Ds\Sequence Ds\Sequence::slice(int
$index, int $length = ?)Creates a sub-sequence of a given range. パラメータ
戻り値A sub-sequence of the given range. 例例1 Ds\Sequence::slice example 上の例の出力は、 たとえば以下のようになります。
Ds\Vector Object
(
[0] => c
[1] => d
[2] => e
)
Ds\Vector Object
(
[0] => b
[1] => c
[2] => d
)
Ds\Vector Object
(
[0] => b
[1] => c
[2] => d
[3] => e
)
Ds\Vector Object
(
[0] => d
[1] => e
)
Ds\Vector Object
(
[0] => b
[1] => c
[2] => d
)
|