Re: Question on foreach()?
| From: | Chuck Hagenbuch | Date: | Fri, 14 Jul 2000 11:36:39 +0000 |
| Subject: | Re: Question on foreach()? | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-24517@lists.php.net to get a copy of this message | ||
Quoting waldschrott <waldschrott@kiffen.de>:
> Would be nice if we had
> foreach($array key $key)
> or something like this,
> foreach($array => $key) would not make sense...
Uh... http://www.php.net/manual/control-structures.foreach.php:
foreach(array_expression as $key => $value)
-chuck
--
Charles Hagenbuch, <chagenbu@wso.williams.edu>
--
" ... I mean, who wouldn't look forward to waking up in the morning and
having a nice big bowl of frosted For-Next Loops ... " - Slashdot comment