PHP function array_walk()
Availability in PHP 4.0
Apply a user function to every member of an array
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$array |
array |
not | The input array. |
$funcname |
callback |
not | Typically, funcname takes on two parameters. The array parameter's value being the first, and the key/index second. |
$userdata |
mixed |
null | If the optional userdata parameter is supplied, it will be passed as the third parameter to the callback funcname. |
Return values
bool
Returns true on success, otherwise false on failure.