PHP » GoLang |
login |
register |
about
|
|
Ds\Map::first(PECL ds >= 1.0.0) Ds\Map::first — Returns the first pair in the map Description
public Ds\Pair Ds\Map::first
( void
)
Returns the first pair in the map. ParametersThis function has no parameters. Return ValuesThe first pair in the map. Errors/ExceptionsUnderflowException if empty. ExamplesExample #1 Ds\Map::first() example
<?phpThe above example will output something similar to:
object(Ds\Pair)#2 (2) {
["key"]=>
string(1) "a"
["value"]=>
int(1)
}
|
more
Most requested
more
Last requests
|