Lines Matching refs:each
2 Test each() function : error conditions - pass incorrect number of args
5 /* Prototype : array each(array $arr)
12 * Pass an incorrect number of arguments to each() to test behaviour
15 echo "*** Testing each() : error conditions ***\n";
18 echo "\n-- Testing each() function with Zero arguments --\n";
19 var_dump( each() );
21 //Test each with one more than the expected number of arguments
22 echo "\n-- Testing each() function with more than expected no. of arguments --\n";
25 var_dump( each($arr, $extra_arg) );
30 *** Testing each() : error conditions ***
32 -- Testing each() function with Zero arguments --
34 Warning: each() expects exactly 1 parameter, 0 given in %s on line %d
37 -- Testing each() function with more than expected no. of arguments --
39 Warning: each() expects exactly 1 parameter, 2 given in %s on line %d