Re: [PHP-DEV] Question on foreach()? From: php4 <email protected>
Date: 07/14/00

Addressed to: Joey Smith <joey <email protected>>
              PHP Developer List <php-dev <email protected>>

** Reply to note from Joey Smith <joey <email protected>> 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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>