Re: Re: Putting a stop in a foreach
| From: | Torsten Roehr | Date: | Sun, 09 May 2004 17:21:47 +0000 |
| Subject: | Re: Re: Putting a stop in a foreach | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-185755@lists.php.net to get a copy of this message | ||
"Curt Zirzow" <php-general@zirzow.dyndns.org> wrote in message
news:20040509164259.GH26014@bagend.shire...
> * 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
Correct, I forgot =0. But as far as I have seen his indices are numeric.
Regards, Torsten
>
>
> Curt
> --
> "I used to think I was indecisive, but now I'm not so sure."