PHP » GoLang |
login |
register |
about
|
Ds\Map::slice(PECL ds >= 1.0.0) Ds\Map::slice — Returns 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
<?php The 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 ) |
more
Recently updated
more
Most requested
more
Last requests
|