Re: Question on foreach()?
| From: | php4 at developersdesk dot com | Date: | Fri, 14 Jul 2000 17:43:36 +0000 |
| Subject: | Re: Question on foreach()? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-24589@lists.php.net to get a copy of this message | ||
Addressed to: Joey Smith <joey@joeysmith.com>
PHP Developer List <php-dev@lists.php.net>
** Reply to note from Joey Smith <joey@joeysmith.com> Fri, 14 Jul 2000 09:52:16 -0600 (MDT)
>
> 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.
>
<Wild Guess Alert>
Because it works well to pull data out of:
array( 'one', 'two', 'three', 'four' );
</Wild Guess Alert>
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com