Perhaps not a great answer, but this issue has been brought up before,
and it has to do with the incrementing of a string...search the
archives...i think someone had a simple workaround using chr() to get
what you want...
jack
-----Original Message-----
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 11:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] weird behaviour with ("Z" <= "Z")
"Z" <= "Z" is true right??
then why this weird thing happens when I have this code:
for($letter="A"; $letter<="Z" ; $letter+)
echo " $letter";
it should output " A B C D E ..... W X Y Z" right?
but it outputs " A B C D E ... W X Y Z AA AB ... YW YX YY YZ".
why?
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.br
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]