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