Date: 10/06/01
- Next message: Richard Lynch: "[PHP] Re: hi whats wrong with this code"
- Previous message: Evan: "[PHP] Upgrade Issues"
- In reply to: Christian C.: "[PHP] $i++ + string??"
- Next in thread: Richard Lynch: "[PHP] Re: $i++ + string??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>>>> "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>
- Next message: Richard Lynch: "[PHP] Re: hi whats wrong with this code"
- Previous message: Evan: "[PHP] Upgrade Issues"
- In reply to: Christian C.: "[PHP] $i++ + string??"
- Next in thread: Richard Lynch: "[PHP] Re: $i++ + string??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

