|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75907 Symmetric array destructuring not properly documented
Submitted: 2018-02-02 13:19 UTC Modified: 2021-11-08 15:43 UTC
From: j dot teriete at interiete dot net Assigned:
Status: Verified Package: Arrays related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: j dot teriete at interiete dot net
New email:
PHP Version: OS:


 [2018-02-02 13:19 UTC] j dot teriete at interiete dot net
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:


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-02 14:22 UTC]
-Status: Open +Status: Verified -Package: Documentation problem +Package: Arrays related
 [2018-02-02 14:22 UTC]
Indeed, so far this info is only available in the migration guide:
 [2018-07-03 14:18 UTC]
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] <>
[2] <>
 [2021-11-08 15:43 UTC]
-Summary: list documentation does not reflect changes of PHP 7.1 +Summary: Symmetric array destructuring not properly documented
 [2021-11-08 15:43 UTC]
The following pull request has been associated:

Patch Name: Array destructuring
On GitHub:
 [2023-05-03 10:12 UTC] godstreas at gmail dot com
Health Workout Blog are sharing latest news portal about fitness, exercise, diet, weight loss, food, health, nutrition, treatment, addiction etc. More info to visit:(
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC