PHP » GoLang |
login |
register |
about
|
|
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
Return ValuesA sub-set of the given range. ExamplesExample #1 Ds\Set::slice() example
<?phpThe above example will output something similar to:
Ds\Set Object
(
[0] => c
[1] => d
[2] => e
)
Ds\Set Object
(
[0] => b
[1] => c
[2] => d
)
Ds\Set Object
(
[0] => b
[1] => c
[2] => d
[3] => e
)
Ds\Set Object
(
[0] => d
[1] => e
)
Ds\Set Object
(
[0] => b
[1] => c
[2] => d
)
|
more
Most requested
more
Last requests
|