← All docs

array_walk()

Applies a user function to every member of an array.

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

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

Internals

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