Easy Tutorial
❮ Func Curl_Multi_Close Func Curl_Getinfo ❯

PHP array_walk_recursive() Function

Complete PHP Array Reference Manual

Example

Apply a user-defined function to each element of the array:


Definition and Usage

The array_walk_recursive() function applies a user-defined function to each element of the array. In the function, both the key and value of the array are parameters. The difference between this function and array_walk() is that it can operate on deeper arrays (an array containing another array).


Syntax

Parameter Description
array Required. Specifies the array.
myfunction Required. The name of the user-defined function.
parameter,... Optional. Specifies parameters for the user-defined function, you can set one or more parameters for the function.

Technical Details

Return Value: Returns TRUE on success, otherwise FALSE.
PHP Version: 5+
--- ---
❮ Func Curl_Multi_Close Func Curl_Getinfo ❯