|
Ds\Map::removeRemoves and returns a value by key. Beschreibung
public mixed Ds\Map::remove
( mixed
$key
[, mixed $default
] )Removes and returns a value by key, or return an optional default value if the key could not be found.
Achtung
Be careful when using array syntax. Scalar keys will be coerced to
integers by the engine. For example, See Arrays. Parameter-Liste
Rückgabewerte
The value that was removed, or the Fehler/ExceptionsOutOfBoundsException if the key could not be found and a default value was not provided. BeispieleBeispiel #1 Ds\Map::remove example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: int(1) int(10) |