September 2001
Intermediate to advanced
768 pages
32h 45m
English
array func_get_args(void)
Gets an array of all arguments passed to a function.
Returns:
Array containing all of the arguments passed to a function; FALSE if func_get_args() is called in global scope
Description:
func_get_args() returns an array containing the list of arguments passed to a user-defined function. Like func_get_arg(), this function allows the programmer to easily create functions that accept variable-length argument lists.
Unlike most functions, func_get_args() cannot always be used as an argument for some functions. It’s better to assign the output of func_get_args() to a variable and then use the variable as the argument for a function.
Availability:
UNIX, Windows
Version:
4.0b4+
See also:
func_get_arg() func_num_args() ...
Read now
Unlock full access