A::reduce()
Reduce an array to a single value
Parameters
Name | Type | Default |
---|---|---|
$array * | array |
– |
$callback * | callable |
– |
$initial | mixed |
null |
Return type
mixed
|null