Re: [Fwd: note 45081 added to control-structures.foreach]
| From: | Mehdi Achour | Date: | Thu, 26 Aug 2004 09:59:25 +0000 |
| Subject: | Re: [Fwd: note 45081 added to control-structures.foreach] | ||
| References: | 1 2 3 4 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969363505@lists.php.net to get a copy of this message | ||
Derick Rethans wrote:
On Thu, 26 Aug 2004, Mehdi Achour wrote:So why don't we add a warning in the "alternative syntax" page ? I think the manual should "document" PHP. Adding a link and a warning sounds better to me than hiding a feature. If someone now finds the alternative syntax, without a note expaining that this syntax sux and that it shouldn't be used, he is maybe going to use it thinking it's ok. We better tell people: it exists, but don't use it. got my point ? :) BTW, just for my own knowledge, why does it suck ? didouDerick Rethans wrote:Yes, that's what I said ;-)On Wed, 25 Aug 2004, Mehdi Achour wrote:You mean should not ?In fact, the foreach: .. endforeach; syntax is documented here: http://fr.php.net/manual/en/control-structures.alternative-syntax.php We should add some links to this page in the docs of if, while, for, foreach, and switch. Can someone take care ?Don't do that. We should promote this.