<?php function foo(int $a = 0, int $b = 0, string ...$flags) { var_dump($flags); } foo(flags: 'bar'); //foo(flags: 'bar', 'baz'); //foo(flags: ['bar', 'baz']); //foo(flags: ...['bar', 'baz']);
You have javascript disabled. You will not be able to edit any code.