Lines Matching refs:array_walk
2 Test array_walk() function : error conditions - callback parameters
5 /* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
11 * Testing array_walk() by passing more number of parameters to callback function
22 echo "*** Testing array_walk() : error conditions - callback parameters ***\n";
26 var_dump( array_walk($input, "callback1") );
31 var_dump( array_walk($input, "callback2", 4) );
38 var_dump( @array_walk($input, "callback1") );
43 var_dump( @array_walk($input, "callback2", 4) );
48 echo "-- Testing array_walk() function with too many callback parameters --\n";
50 var_dump( array_walk($input, "callback1", 20, 10) );
58 *** Testing array_walk() : error conditions - callback parameters ***
63 -- Testing array_walk() function with too many callback parameters --
65 Warning: array_walk() expects at most 3 parameters, 4 given in %s on line %d