Gen. partnerAlgotech

PHP function array_walk_recursive()

Apply a user function recursively to every member of an array

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.