Skip to content

Commit b75863f

Browse files
authored
Point to bracket notation in description of list() language construct (#3957)
1 parent e784ba3 commit b75863f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/array/functions/list.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525
the numerical indices start at 0.
2626
</para>
2727
</note>
28+
<para>
29+
As of PHP 7.1.0, <function>list</function> can also contain explicit keys, allowing for the
30+
destructuring of arrays with non-integer or non-sequential keys. For more details on
31+
array destructuring, see the <link linkend="language.types.array">array destructuring section</link>.
32+
</para>
2833
</refsect1>
2934
<refsect1 role="parameters">
3035
&reftitle.parameters;

0 commit comments

Comments
 (0)