From PHP 5.6 we now have the possibility to invoke or declare a function, stating that the arguments are infinite, using the ... operator.
Example:
function add(... $arguments)
{
return array_sum($arguments);
}
add(1, 2,...
asked by
16.09.2015 / 17:55