September 2001
Intermediate to advanced
768 pages
32h 45m
English
mixed func_get_arg(int argument_number) Gets a single argument from the argument list passed to a function.
Returns:
Item from an argument list; FALSE if func_get_arg() is called in global scope
Description:
func_get_arg() is used to retrieve a single argument from the list of arguments passed to a user-defined function. It allows the programmer to easily create functions that accept variable-length argument lists.
The argument retrieved is the argument present at the offset specified by argument_number . The argument list starts at 0. If the argument specified by argument_number doesn’t exist, a warning is generated.
Unlike most functions, func_get_arg() cannot always be used as an argument for some functions. It’s better to ...
Read now
Unlock full access