well... I think u may be wrong.... if "Z" is a string and there's nothing 
bigger or lower than it what is the result of strcmp("Z","a")???

I guarantee you it will not be 0...

At 01:09 11/7/2001 +0900, Maxim Maletsky wrote:
>what???
>
>are you sure it does that to you?
>You sound so confident that it confuses my knowledge that for loop should be
>counting integers, not strings ("Z" is a string and there's nothing bigger
>or lower it)
>
>-maxim maletsky
>
>
>
>
>-----Original Message-----
>From: Christian Dechery [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, July 11, 2001 12: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]

____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer


-- 
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]

Reply via email to