Re: problem with for loop...help....
| From: | Marko Vukovic' | Date: | Thu, 14 Sep 2000 14:57:02 +0000 |
| Subject: | Re: problem with for loop...help.... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-16786@lists.php.net to get a copy of this message | ||
Shane McBride wrote:
> ---cut---
> for ($i = 0; $i < 1; $i++) {
> ---cut ---
Are you wanting it to loop from 0 -> 1 ? If so, the above won't work as $i=0 and $i<1 are
essentially the same thing.
You should therefore do this:
for ($i = 0; $i <= 1; $i++)
so that $i less-than-or-equal-to 1
--
Marko.