Lines Matching refs:array_reduce
2 Test array_reduce() function : error conditions
5 /* Prototype : mixed array_reduce(array input, mixed callback [, int initial])
11 echo "*** Testing array_reduce() : error conditions ***\n";
14 //Test array_reduce with one more than the expected number of arguments
15 echo "\n-- Testing array_reduce() function with more than expected no. of arguments --\n";
20 var_dump( array_reduce($input, $callback, $initial, $extra_arg) );
22 // Testing array_reduce with one less than the expected number of arguments
23 echo "\n-- Testing array_reduce() function with less than expected no. of arguments --\n";
25 var_dump( array_reduce($input) );
30 *** Testing array_reduce() : error conditions ***
32 -- Testing array_reduce() function with more than expected no. of arguments --
34 Warning: array_reduce() expects at most 3 parameters, 4 given in %sarray_reduce_error.php on line %d
37 -- Testing array_reduce() function with less than expected no. of arguments --
39 Warning: array_reduce() expects at least 2 parameters, 1 given in %sarray_reduce_error.php on line …