PHP function array_walk_recursive()
Availability in PHP 5.0
Apply a user function recursively to every member of an array
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$input |
array |
not | The input array. |
$funcname |
callback |
not | Typically, funcname takes on two parameters. The input 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.
Other resources
Official documentation for the array-walk-recursive function