php ...三个点的参数,php参数前带三个点是什么意思?

可变参数的函数,的确是语法糖 http://php.net/manual/zh/functions.arguments.php#functions.variable-arg-list例子:
<?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"