[DOC-CVS] [doc-en] master: Name the spread operator
[email protected] (Karoly Negyesi)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Karoly Negyesi (chx)
Date: 2025-07-18T15:50:25+02:00
Commit: https://github.com/php/doc-en/commit/e8600fec147c06a6f4dcfb02f0f0e95b2f89d1e3
Raw diff: https://github.com/php/doc-en/commit/e8600fec147c06a6f4dcfb02f0f0e95b2f89d1e3.diff
Name the spread operator
Changed paths:
M language/types/array.xml
Diff:
diff --git a/language/types/array.xml b/language/types/array.xml
index 06dfcb0b417c..98a18a2766d5 100644
--- a/language/types/array.xml
+++ b/language/types/array.xml
@@ -1162,7 +1162,8 @@ array(3) {
<para>
An array prefixed by <code>...</code> will be expanded in place during array definition.
Only arrays and objects which implement <interfacename>Traversable</interfacename> can be expanded.
- Array unpacking with <code>...</code> is available as of PHP 7.4.0.
+ Array unpacking with <code>...</code> is available as of PHP 7.4.0. This is also called
+ the spread operator.
</para>
<para>