|
Ds\Map::sliceReturns a subset of the map defined by a starting index and length. Description
public Ds\Map Ds\Map::slice
( int
$index
[, int $length
] )
Returns a subset of the map defined by a starting Parameters
Return ValuesA subset of the map defined by a starting index and length. ExamplesExample #1 Ds\Map::slice example
<?phpThe above example will output something similar to:
Array
(
[c] => 3
[d] => 4
[e] => 5
)
Array
(
[b] => 2
[c] => 3
[d] => 4
)
Array
(
[b] => 2
[c] => 3
[d] => 4
[e] => 5
)
Array
(
[d] => 4
[e] => 5
)
Array
(
[b] => 2
[c] => 3
[d] => 4
)
|