[UPHPU] Understanding php's logic

Ashley Oviatt ashovi at qwest.net
Tue Apr 6 14:33:13 MDT 2004


Jacob Fugal wrote:
> Because
> 
> 1) "Z" <= "Z"
> 2) "Z"++ == "AA"
> 3) "AA" <= "Z", so it keeps going.
> 
> When you get to "YZ", "YZ"++ == "ZZ" and "ZZ" > "Z", so it stops. 
> Replacing  "Z" with "Y",
> 
> 1) "Y" <= "Y"
> 2) "Y"++ == "Z"
> 3) "Z" > "Y", so it stops right there.
> 
> Jacob Fugal
> 

Ok. So when it does Z++ the result isn't > Z? That seems weird, but I
undestand now.

What I'd need to put, to make a string that is ABCDEFG...XYZ is !="AA".
That seems to work.

Thanks,

Ash





More information about the UPHPU mailing list