Re: Request for comment
| From: | Zeev Suraski | Date: | Fri, 11 Aug 2000 03:41:22 +0000 |
| Subject: | Re: Request for comment | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-28562@lists.php.net to get a copy of this message | ||
At 01:31 11/08/2000, Zak Greant wrote:
Andi wrote:How so? The other looping constructs don't handle arrays anyway, so in that sense, foreach() is 'inconsistent' with the other looping constructs by definition. The way foreach() behaves has little to do with consistency with other looping constructs, because it's inherently different. The only question is whether the behavior Andi suggested is sufficient. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/[snip] Does anyone see a problem with this? It would mean you can't put obscure stuff into foreach().The only issue that I can see with this is that foreach's behavior would not be consistent with the other looping constructs. However, I personally do not feel this is a big problem. After all, PHP is not Perl ;)