|
array_walkApply a user supplied function to every member of an array Description
bool array_walk
( array
&$array
, callable $callback
[, mixed $userdata = NULL
] )
Applies the user-defined
array_walk is not affected by the internal array
pointer of Parameters
Return Values
Returns Errors/Exceptions
If function Examples
Example #1 array_walk example
<?php The above example will output: Before ...: d. lemon a. orange b. banana c. apple ... and after: d. fruit: lemon a. fruit: orange b. fruit: banana c. fruit: apple |