Gen. partnerAlgotech

PHP function array_walk()

Apply a user function to every member of an array

|
September 11, 2019

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.

Other resources

Official documentation for the array-walk 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.