Is it possible to have an array and pass it to a function as separate arguments?
$name = array('test', 'dog', 'cat'); $name = implode(',' $name); randomThing($name); function randomThing($args) { $args = func_get_args(); // Would be 'test', 'dog', 'cat' print_r($args); }
Jream source share