Function __global->array_walk_recursive
Definitions
sources_custom/phpstub.php
- Apply a user function recursively to every member of an array.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $input | array | No | No | required parameter | N/A | N/A | The input array |
| $funcname | mixed | No | No | required parameter | N/A | N/A | Callback |
| $userdata | ?mixed | No | No | Null | N/A | N/A | If the optional userdata parameter is supplied, it will be passed as the third parameter to the callback funcname (null: no user data) |
Returns
- Result
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Apply a user function recursively to every member of an array.
*
* @param array $input The input array
* @param mixed $funcname Callback
* @param ?mixed $userdata If the optional userdata parameter is supplied, it will be passed as the third parameter to the callback funcname (null: no user data)
* @return boolean Result
*/
function array_walk_recursive(array $input, $funcname, $userdata = null) : bool
* Apply a user function recursively to every member of an array.
*
* @param array $input The input array
* @param mixed $funcname Callback
* @param ?mixed $userdata If the optional userdata parameter is supplied, it will be passed as the third parameter to the callback funcname (null: no user data)
* @return boolean Result
*/
function array_walk_recursive(array $input, $funcname, $userdata = null) : bool

