Skip to content

Kirby 4.4.1

A::reduce()

Reduce an array to a single value

A::reduce(array $array, callable $callback, $initial = null): mixed|null

Parameters

Name Type Default
$array * array
$callback * callable
$initial mixed null

Return type

mixed|null

Parent class

Kirby\Toolkit\A