[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!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php