Splat Operator

function foo($first, ...$other) {
    var\_dump($first); # => a
      var\_dump($other); # => ['b', 'c']
}
foo('a', 'b', 'c' /\*, ...\*/ );
// or
function foo($first, string ...$other){}
Comments