|
Ds\Sequence::sliceReturns 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
Return ValuesA sub-sequence of the given range. ExamplesExample #1 Ds\Sequence::slice example The above example will output something similar to:
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
)
|