← All docs

call_user_func_array()

Calls a callback with an array of parameters.

call_user_func_array()

function call_user_func_array(callable $callback, array $args): mixed

Calls a callback with an array of parameters.

Parameters:

  • $callback (callable)
  • $args (array)

Returns: mixed

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

Internals

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