Lines Matching refs:array_walk
2 Test array_walk() function : error conditions
5 /* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
21 echo "*** Testing array_walk() : error conditions ***\n";
23 echo "-- Testing array_walk() function with zero arguments --\n";
24 var_dump( array_walk() );
26 echo "-- Testing array_walk() function with one argument --\n";
27 var_dump( array_walk($input) );
29 echo "-- Testing array_walk() function with non existent callback function --\n";
30 var_dump( array_walk($input, "non_existent") );
35 *** Testing array_walk() : error conditions ***
36 -- Testing array_walk() function with zero arguments --
38 Warning: array_walk() expects at least 2 parameters, 0 given in %s on line %d
40 -- Testing array_walk() function with one argument --
42 Warning: array_walk() expects at least 2 parameters, 1 given in %s on line %d
44 -- Testing array_walk() function with non existent callback function --
46 Warning: array_walk() expects parameter 2 to be a valid callback, function 'non_existent' not found…