array_walk()
function array_walk(array $array, callable $callback): void
Applies a user function to every member of an array.
Parameters:
$array(array), passed by reference$callback(callable)
Returns: void
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/array/array_walk.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how array_walk is implemented in the compiler, see the internals page.