Doc #75907 [PATCH]: Symmetric array destructuring not properly documented

[email protected] ("[email protected]")
Newsgroups php.doc.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=75907&edit=1

 ID:                 75907
 Patch added by:     [email protected]
 Reported by:        j dot teriete at interiete dot net
 Summary:            Symmetric array destructuring not properly
                     documented
 Status:             Verified
 Type:               Documentation Problem
 Package:            Arrays related
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

The following pull request has been associated:

Patch Name: Array destructuring
On GitHub:  https://github.com/php/doc-en/pull/796
Patch:      https://github.com/php/doc-en/pull/796.patch


Previous Comments:
------------------------------------------------------------------------
[2018-07-03 14:18:25] [email protected]

The 7.1 list() enhancements are documented now[1], but the
“Symmetric array destructuring”[2] is still undocumented.  Since
the latter is somewhat related, I'm leaving this ticket open to
track that.

[1] <http://svn.php.net/viewvc?view=revision&revision=345209>
[2] <http://de2.php.net/manual/en/migration71.new-features.php#migration71.new-features.symmetric-array-destructuring>

------------------------------------------------------------------------
[2018-02-02 14:22:31] [email protected]

Indeed, so far this info is only available in the migration guide:
<http://de2.php.net/manual/en/migration71.new-features.php#migration71.new-features.support-for-keys-in-list>

------------------------------------------------------------------------
[2018-02-02 13:19:34] j dot teriete at interiete dot net

Description:
------------
Since PHP 7.1 list() supports destructuring of arrays with non-integer or non-sequential keys. The documentation (english and german) is out of date, showing only the support of numerical arrays.

---
From manual page: http://www.php.net/function.list
---




------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=75907&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.