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