Walking the array
There are times that you want to apply some filtering or modifications to all items in an array, but you don't want to build a new array and wan't to keep the array intact. The array_walk php function can be used to accomplish this. The array_walk function takes the following arguments. bool array_walk ( array &$array , callback $funcname [, mixed $userdata ] ) The array to work on, a function name to run on each item of an array, and an optional argument for additional parameters to supply ... read more!
Posted in php | Post Comment

RSS Feed