array_reduce

 mixed array_reduce ( array $input , callback $function [, mixed $initial = NULL ] ) 

説明

array_reduce() applies iteratively the function function to the elements of the array input, so as to reduce the array to a single value.

戻り値

Returns the resulting value. If the array is empty and initial is not passed, array_reduce() returns NULL.