← All docs

func_get_arg()

Returns one argument from the current function call.

func_get_arg()

function func_get_arg(int $position): mixed

Returns one argument from the current function call.

Parameters:

  • $position (int)

Returns: mixed

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

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