Doc #75907 [Com]: Symmetric array destructuring not properly documented
[email protected] ("godstreas at gmail dot com") Wed, 03 May 2023 10:12:10 +0000
| Newsgroups | php.doc.bugs |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=75907&edit=1
ID: 75907
Comment by: godstreas at gmail dot com
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:
Health Workout Blog are sharing latest news portal about fitness, exercise, diet, weight loss, food, health, nutrition, treatment, addiction etc. More info to visit:(https://healthworkoutblog.com)github.com
Previous Comments:
------------------------------------------------------------------------
[2021-11-08 15:43:19] [email protected]
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
------------------------------------------------------------------------
[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