?php function foo() {$numargs = func_num_args(); echo "Number of arguments: $numargs br \n"; if ($numargs = 2) {echo "Second argument is: ". func_get_arg (1)." br \n";}} foo (1, 2, 3);?
If arg_num is greater than the number of arguments actually passed, a warning will be generated and func_get_arg() will return FALSE.