diff --git a/reference/array/functions/array-walk.xml b/reference/array/functions/array-walk.xml index 0bb6e84d92..d34ca59640 100644 --- a/reference/array/functions/array-walk.xml +++ b/reference/array/functions/array-walk.xml @@ -1,5 +1,5 @@ - + @@ -13,26 +13,26 @@ boolarray_walk array&array - callbackfunction + callbackfuncname mixeduserdata &return.success; - Applies the user-defined function function to each + Applies the user-defined function funcname to each element of the array array. Typically, - function takes on two parameters. + funcname takes on two parameters. The array parameter's value being the first, and the key/index second. If the optional userdata parameter is supplied, it will be passed as the third parameter to - the callback function. + the callback funcname. - If function function requires more parameters than + If function funcname requires more parameters than given to it, an error of level E_WARNING will be generated each time array_walk - calls function. These warnings may be suppressed by + calls funcname. These warnings may be suppressed by prepending the PHP error operator @ to the array_walk call, or by using @@ -40,9 +40,9 @@ - If function needs to be working with the + If funcname needs to be working with the actual values of the array, specify the first parameter of - function as a + funcname as a reference. Then, any changes made to those elements will be made in the original array itself. @@ -50,7 +50,7 @@ - Passing the key and userdata to function was + Passing the key and userdata to funcname was added in 4.0.0