3 function func_num_args_simple() {
4 return func_num_args();
7 function func_num_args_arg($arg) {
8 return func_num_args();
12 function test(string $generator, array $args) {
13 var_dump(call_user_func_array($generator, $args));
16 function test_num_args(string $type, array $extra_args, mixed ...$more_args) {
18 'func_num_args_'.$type,
26 $extra_args_set = array(
32 foreach ($extra_args_set as $extra_args) {
33 test_num_args('simple', $extra_args);
35 test_num_args('arg', $extra_args, 'defined_arg');