Array Spread¶
Array spread is the ellipsis operator, applied to an array. Then, the array itself is replaced by each of its own element, as if each element was spread from the array.
<?php
$a = [1,2,3];
$b = [...$a, 4,5];
// $b === [1,2,3,4,5];
?>
See also PHP Spread Operator
Related : Ellipsis
Added in PHP 7.4