func_get_arg

func_get_arg

(PHP 4, PHP 5, PHP 7)

func_get_argReturn an item from the argument list

Description

mixed func_get_arg ( int $arg_num )

Gets the specified argument from a user-defined function's argument list.

This function may be used in conjunction with func_get_args() and func_num_args() to allow user-defined functions to accept variable-length argument lists.