Re: $i++ + string??
| From: | 602e23 | Date: | Sun, 07 Oct 2001 02:53:21 +0000 |
| Subject: | Re: $i++ + string?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70266@lists.php.net to get a copy of this message | ||
>>>>> "Christian" == Christian C <c@c.com> writes:
Christian> Hello :c)
Christian> Can any one explain to me why this is not working??
Christian> $i = 1;
Christian> while ($i <= 10) {
Christian> echo "$i++ <br>";
Christian> }
Christian> i is staying set to 1 (and it never ends :c)
how about this:
$i = 1;
while ($i <= 10) {
echo $i++ . " <br>";
}