Name
array_walk
Synopsis
bool array_walk(arrayinput
, stringcallback
[, mixeduser_data
])
Calls the named function for each element in the array. The
function is called with the element’s value, key, and optional user
data as arguments. To ensure that the function works directly on the
values of the array, define the first parameter of the function by
reference. Returns true
on success,
false
on failure.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.