Re: Question on foreach()?
| From: | Joey Smith | Date: | Fri, 14 Jul 2000 15:57:09 +0000 |
| Subject: | Re: Question on foreach()? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24545@lists.php.net to get a copy of this message | ||
Andrei:
Thanks. I courteously disagree, but thank you for answering the
question. =)
On Fri, 14 Jul 2000, Andrei Zmievski wrote the following to Joey Smith :
> On Fri, 14 Jul 2000, Joey Smith wrote:
> > I should have been more clear, I guess.
> >
> > I am fully aware of the
> > foreach($array as $key => $value)
> > structure. What I am asking is WHY the shorter version deals with
> > values instead of keys. This was more a ? for one of the core guys, trying
> > to understand conceptually WHY something was done.
>
> Because you use values more often than keys.
>
> -Andrei
> * Ethernet n.: something used to catch the etherbunny. *
>
>