Re: Question on foreach()?
| From: | Andrei Zmievski | Date: | Fri, 14 Jul 2000 15:54:41 +0000 |
| Subject: | Re: Question on foreach()? | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24544@lists.php.net to get a copy of this message | ||
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. *