Re: Re: Putting a stop in a foreach
| From: | Curt Zirzow | Date: | Sun, 09 May 2004 16:42:59 +0000 |
| Subject: | Re: Re: Putting a stop in a foreach | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185752@lists.php.net to get a copy of this message | ||
* Thus wrote Torsten Roehr (roehr@zilleon.com):
>
> Sorry, I mixed up the for and the foreach syntaxes. Here my (hopefully
> correct) loop proposal:
>
> for ($i; $i < 5; $i++) {
for($i=0; ...)
I wouldn't suggest this method, it is making the assumption that
the indexes are numeric and sequenced from 0..5
Curt
--
"I used to think I was indecisive, but now I'm not so sure."