|
Ds\Deque::applyUpdates all values by applying a callback function to each value. Beschreibung
public void Ds\Deque::apply
( callable
$callback
)
Updates all values by applying a Parameter-Liste
RückgabewerteEs wird kein Wert zurückgegeben. BeispieleBeispiel #1 Ds\Deque::apply example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Ds\Deque Object
(
[0] => 2
[1] => 4
[2] => 6
)
|