Function

array_reduce

Synopsis

array_reduce(mixed, mixed, mixed ...): mixed

Area
Runtime\PS\Core\Arrays\array_reduceareas

Description

array_reduce folds $array with $callback, which receives the carry and the value, starting from $initial and returning null for an empty array.

Usage

$value = array_reduce($arguments);
$fn = array_reduce(...);

See also