<?php class Foo { } class Bar { } function F(Foo ...$foos) { var_dump($foos); } $arr = [new Foo(), new Foo(), new Bar()]; F(...$arr);
You have javascript disabled. You will not be able to edit any code.