Lines Matching refs:array_walk_recursive
2 Test array_walk_recursive() function : error conditions
5 /* Prototype : bool array_walk_recursive(array $input, string $funcname [, mixed $userdata])
21 echo "*** Testing array_walk_recursive() : error conditions ***\n";
23 echo "-- Testing array_walk_recursive() function with zero arguments --\n";
24 var_dump( array_walk_recursive() );
26 echo "-- Testing array_walk_recursive() function with one argument --\n";
27 var_dump( array_walk_recursive($input) );
30 echo "-- Testing array_walk_recursive() function with non existent callback function --\n";
31 var_dump( array_walk_recursive($input, "non_existent") );
36 *** Testing array_walk_recursive() : error conditions ***
37 -- Testing array_walk_recursive() function with zero arguments --
39 Warning: array_walk_recursive() expects at least 2 parameters, 0 given in %s on line %d
41 -- Testing array_walk_recursive() function with one argument --
43 Warning: array_walk_recursive() expects at least 2 parameters, 1 given in %s on line %d
45 -- Testing array_walk_recursive() function with non existent callback function --
47 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, function 'non_existent'…