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

From: Date: Wed, 03 May 2023 10:12:10 +0000
Subject: Doc #75907 [Com]: Symmetric array destructuring not properly documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-19604@lists.php.net to get a copy of this message
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] cmb@php.net

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] cmb@php.net

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] cmb@php.net

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


Thread (5 messages)

« previous php.doc.bugs (#19604) next »