Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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];

?>

Documentation

See Also