← All docs

array_walk_recursive()

Applies a user function recursively to every member of an array.

array_walk_recursive()

function array_walk_recursive(array $array, callable $callback): void

Applies a user function recursively 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): not available inside eval’d code.

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how array_walk_recursive is implemented in the compiler, see the internals page.