Menu Home

func_get_arg

osbo.com | PHP | Functions | func_get_arg

Return an item from the argument list

Syntax

func_get_arg ( int $arg_num ) : mixed

Parameters

arg_num

The argument offset. Function arguments are counted starting from zero.

Return

Returns the specified argument, or FALSE on error.

Examples

1

a

2

0:a
1:b
2:c

PHP