On 19 November 2003 16:15, Jay Blanchard contributed these pearls of wisdom:
> [snip] > 'Z'+1 is defined to be 'AA' (it says that in the manual, > too!), so your loop has to be: > > for($letter = 'A'; $letter <= 'AA'; $letter++){ > echo $letter . "\n"; > } > [/snip] > > Run this, you'll be surprised at what you get. 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! Cheers! Mike -- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php