[PHP] Re: $i++ + string?? From: 602e23 (602e23 <email protected>)
Date: 10/06/01

>>>>> "Christian" == Christian C <c <email protected>> 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>";
        }

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>