Re: Foreach loop syntax
| From: | Rasmus Lerdorf | Date: | Tue, 01 Aug 2000 01:52:51 +0000 |
| Subject: | Re: Foreach loop syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-9337@lists.php.net to get a copy of this message | ||
> foreach $cheese ($cheeses) {
Because that makes no sense in a procedural language. Consistency
dictates that you have:
foo(bar) {
...
}
and not
foo bar (bar) {
...
}
-Rasmus