

<?php
$param = ['a','b','c'];
function test($a,$b,$c){
var_dump($a,$b,$c);
}
echo "old style:\n";
//旧方式
test($param[0],$param[1],$param[2]);
echo "new style:\n";
//可变参数
test(...$param);
执行结果
➜ ~ php test.php
old style:
string(1) "a"
string(1) "b"
string(1) "c"
new style:
string(1) "a"
string(1) "b"
string(1) "c"