I'm learning PHP http://php.net/manual/en/migration70.new-features.php and in the following example, I don't understand ...
prepended with the $ints
parameter in the function definition.
<?php
// Coercive mode
function sumOfInts(int ...$ints)
{
return array_sum($ints);
}
var_dump(sumOfInts(2, '3', 4.1));
Can anybody please tell me what those dots are for?
Thanks.