Re: Major isssue with foreach() in PHP 4.3.10
| From: | Jeremy Johnstone | Date: | Fri, 17 Dec 2004 00:03:34 +0000 |
| Subject: | Re: Major isssue with foreach() in PHP 4.3.10 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14105@lists.php.net to get a copy of this message | ||
On Thu, 16 Dec 2004 22:00:11 +0100 (CET), Derick Rethans <derick@php.net> wrote:
> And yes, there is another foreach bug of you do:
>
> foreach($array as $key => $key)
As you mentioned in the bug report, IMHO that isn't a bug. I can't
think of any instance where this should be a valid syntax (maybe I am
not thinking creatively enough).
--
---------------------------
Jeremy Johnstone
http://www.jeremyjohnstone.com
jsjohnst@php.net