<?php function test(...$args) { var_dump($args); } test(1, 2, 3); // [1, 2, 3] test(...[1, 2, 3]); // [1, 2, 3] test(...new Exception()); // [1, 2, 3]
You have javascript disabled. You will not be able to edit any code.