[UPHPU] Understanding php's logic

Mac Newbold mac at macnewbold.com
Tue Apr 6 16:18:29 MDT 2004


Today at 2:11pm, Jacob Fugal said:

>1) "Z" <= "Z"

>3) "AA" <= "Z", so it keeps going.
>
>When you get to "YZ", "YZ"++ == "ZZ" and "ZZ" > "Z", so it stops.
>Replacing  "Z" with "Y",

Yes, the above all makes sense.

>2) "Z"++ == "AA"

However, this one does not. How does PHP figure that "Z"++ ="AA" ?

I could understand if "Z" (char 90) + 1 == "[" (char 91), but, or even if
"Z" + 1 == "Z1" (maybe not applicable to ++, though). But it not only
wraps around, but adds another letter to the string... how does that work?
And where is it documented?

Confused,
Mac

--
Mac Newbold		MNE - Mac Newbold Enterprises, LLC
mac at macnewbold.com	http://www.macnewbold.com/



More information about the UPHPU mailing list