Home > PHP > Function > Function Handling > func_get_arg()

func_get_arg()

func_get_arg - Return an item from the argument list

Syntax

mixed func_get_arg (int $arg_num)

Arguments

  • arg_num - The argument offset. Function arguments are counted starting from zero.

Description

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

Version

PHP 4, 5

Return value

Returns the specified argument, or FALSE on error.