<?php function variadic(string $a, ...$b) { printf( "--------------%d---------------\n", func_num_args()); var_dump(func_get_args()); var_dump($a, $b); printf("------------------------------\n\n"); } variadic("a", ["things", "things2"]); variadic(a: "a", b: ["things", "things2"]);
You have javascript disabled. You will not be able to edit any code.