2 /* Prototype : mixed array_sum(array &input)
3 * Description: Returns the sum of the array entries
4 * Source code: ext/standard/array.c
7 echo "*** Testing array_sum() : error conditions ***\n";
10 echo "-- Testing array_sum() function with zero arguments --\n";
11 var_dump( array_sum() );
13 // One more than the expected number of arguments
14 echo "-- Testing array_sum() function with more than expected no. of arguments --\n";
15 $input = array(1, 2, 3, 4);
17 var_dump( array_sum($input, $extra_arg) );