Ellipsis¶
Ellipsis operator is the ... operator. It also bears the name of three dots, and even dot dot dot.
It is used to implements the array spread feature, and the variadic arguments. The actual feature depends on the context.
Ellipsis is the classic punctuation description of the operator, and it applies to both features.
<?php
$array = [1, 2, 3];
$more = [...$array, 4, 5];
?>
See also The many uses of … ellipsis operator in PHP and The Splat Operator In PHP.
Related : Array Spread, Variadic, Three Dots
Added in PHP 5.6