[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] Doc #79883 [Asn->Opn]: Documentation on foreach neglects to mention the alternate syntax.
From:       cmb () php ! net
Date:       2020-07-22 8:30:25
Message-ID: E1jyA8v-00047B-8U () bugs ! php ! net
[Download RAW message or body]

Edit report at https://bugs.php.net/bug.php?id=79883&edit=1

 ID:                 79883
 Updated by:         cmb@php.net
 Reported by:        mark at manngo dot net
 Summary:            Documentation on foreach neglects to mention the
                     alternate syntax.
-Status:             Assigned
+Status:             Open
 Type:               Documentation Problem
 Package:            Documentation problem
 PHP Version:        Irrelevant
-Assigned To:        cmb
+Assigned To:        
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2020-07-22 08:30:15] cmb@php.net

Indeed, the alternative syntax is mentionend on the while, for,
and switch pages (apparently not on the if page), so might make
sense to add this info on the foreach page as well.  I don't have
a strong feeling about either way.

------------------------------------------------------------------------
[2020-07-22 08:17:08] mark at manngo dot net

Possibly, but since the pages on while, for, if and switch all mention the \
alternative syntax, this looks like an omission.

------------------------------------------------------------------------
[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

-- 
PHP Documentation Bugs Mailing List (https://www.php.net/)
To unsubscribe, visit: https://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic