Lines Matching refs:array_walk
2 Test array_walk() function : basic functionality - associative array
5 /* Prototype : bool array_walk(array $input, string $funcname [, mixed $userdata])
10 echo "*** Testing array_walk() : basic functionality ***\n";
46 echo "-- Using array_walk with default parameters to show array contents --\n";
47 var_dump(array_walk($fruits, 'test_print'));
49 echo "-- Using array_walk with one optional parameter to modify contents --\n";
50 var_dump (array_walk($fruits, 'test_alter', 'fruit'));
52 echo "-- Using array_walk with default parameters to show modified array contents --\n";
53 var_dump (array_walk($fruits, 'test_print'));
58 *** Testing array_walk() : basic functionality ***
59 -- Using array_walk with default parameters to show array contents --
73 -- Using array_walk with one optional parameter to modify contents --
91 -- Using array_walk with default parameters to show modified array contents --