Hello Christian,

10 July, 2001, 18:44:53, you wrote:

CD> "Z" <= "Z" is true right??

Yes, right, but "Z" = "Z" and your code makes next iteration, then
$letter = "AZ" and "AZ" is LESS that "Z", because "A" < "Z".
:)



CD> then why this weird thing happens when I have this code:

CD> for($letter="A"; $letter<="Z" ; $letter+)
CD>   echo " $letter";

CD> it should output " A B C D E ..... W X Y Z" right?

CD> but it outputs " A B C D E ... W X Y Z AA AB ... YW YX YY YZ".

CD> why?

-- 
Best regards,
 Vitali                            mailto:[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]

Reply via email to