Lines Matching refs:array_reduce
2 Test array_reduce() function
7 /* Prototype: array array_reduce(array $array, mixed $callback, mixed $initial);
13 echo "\n*** Testing array_reduce() to integer ***\n";
16 var_dump(array_reduce($array, 'reduce_int', $initial), $initial);
18 echo "\n*** Testing array_reduce() to float ***\n";
21 var_dump(array_reduce($array, 'reduce_float', $initial), $initial);
23 echo "\n*** Testing array_reduce() to string ***\n";
26 var_dump(array_reduce($array, 'reduce_string', $initial), $initial);
28 echo "\n*** Testing array_reduce() to array ***\n";
31 var_dump(array_reduce($array, 'reduce_array', $initial), $initial);
33 echo "\n*** Testing array_reduce() to null ***\n";
36 var_dump(array_reduce($array, 'reduce_null', $initial), $initial);
41 *** Testing array_reduce() to integer ***
45 *** Testing array_reduce() to float ***
49 *** Testing array_reduce() to string ***
53 *** Testing array_reduce() to array ***
75 *** Testing array_reduce() to null ***