PHP » GoLang |
login |
register |
about
|
Ds\Map::remove(PECL ds >= 1.0.0) Ds\Map::remove — Removes and returns a value by key DescriptionRemoves and returns a value by key, or return an optional default value if the key could not be found.
Caution
Be careful when using array syntax. Scalar keys will be coerced to
integers by the engine. For example, See Arrays. Parameters
Return Values
The value that was removed, or the Errors/ExceptionsOutOfBoundsException if the key could not be found and a default value was not provided. ExamplesExample #1 Ds\Map::remove() example
<?php The above example will output something similar to: int(1) int(10) |
more
Recently updated
more
Most requested
more
Last requests
|