|
Ds\Deque::applyUpdates all values by applying a callback function to each value. Description
public void Ds\Deque::apply
( callable
$callback
)
Updates all values by applying a Parameters
Return ValuesNo value is returned. ExamplesExample #1 Ds\Deque::apply example
<?php The above example will output something similar to: Ds\Deque Object ( [0] => 2 [1] => 4 [2] => 6 ) |