RE: [PHP] stepping through alphabet

From: Date: Wed, 19 Nov 2003 16:29:01 +0000
Subject: RE: [PHP] stepping through alphabet
Groups: php.general 
Request: Send a blank email to php-general+get-170308@lists.php.net to get a copy of this message
[snip] OK, my bad -- I let my fingers do the talking without proper monitoring from my brain. This is what I actually use in more than a few scripts: for ($c='A'; $c!='AA'; $c++): echo $c; endfor; I just forgot to change the comparison from <= to != I guess this behaviour of ++ is a two-edged sword -- sometimes it's very useful, but in this instance it's a bit of a pain in the neck! [/snip] :) Exactly!

« previous php.general (#170308) next »