Doc #79883 [Nab]: Documentation on foreach neglects to mention the alternate syntax.
| From: | mark at manngo dot net | Date: | Wed, 22 Jul 2020 08:17:08 +0000 |
| Subject: | Doc #79883 [Nab]: Documentation on foreach neglects to mention the alternate syntax. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17728@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79883&edit=1
ID: 79883
User updated by: mark at manngo dot net
Reported by: mark at manngo dot net
Summary: Documentation on foreach neglects to mention the
alternate syntax.
Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Possibly, but since the pages on while, for, if and switch all mention the alternative syntax, this
looks like an omission.
Previous Comments:
------------------------------------------------------------------------
[2020-07-22 07:28:44] cmb@php.net
There is a dedicated page for the alternative syntax of control
structures[1], and in my opinion, this is better than to mention
that again on all the other pages.
[1] <https://www.php.net/manual/en/control-structures.alternative-syntax.php>
------------------------------------------------------------------------
[2020-07-22 07:19:33] mark at manngo dot net
Description:
------------
---
From manual page: https://php.net/control-structures.foreach
---
Apart from a helpful comment, there is no mention of the alternate syntax for foreach.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79883&edit=1