func_get_args

PHP 4, PHP 5, PHP 7, PHP 8
func_get_args - Returns an array comprising a function's argument list
Manual
Code Examples

Example #1 func_get_args example of byref and byval arguments

Result: As passed : array ( 0 => 'bar', ) After change : array ( 0 => 'baz', ) As passed : array ( 0 => 'bar', ) After change : array ( 0 => 'baz', )
PHP Version:

Example #2 func_get_args example

Result: Number of arguments: 3 Second argument is: 2 Argument 0 is: 1 Argument 1 is: 2 Argument 2 is: 3
PHP Version:


Function func_get_args:

Function Handling Functions

Most used PHP functions