mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
Fix unpacking with string key example
The example seems not relevant since it already works and produces the same output in the previous PHP versions. Closes GH-1501.
This commit is contained in:
parent
99d758bd25
commit
64b3b8a362
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$arr1 = [1, 'a'];
|
||||
$arr2 = [...$arr1, 'c' => 'd']; //[1, 'a', 'c' => 'd']
|
||||
$arr1 = [1, 'a' => 'b'];
|
||||
$arr2 = [...$arr1, 'c' => 'd']; //[1, 'a' => 'b', 'c' => 'd']
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue