note 40529 deleted from function.max by bjori
| From: | bjori@php.net | Date: | Mon, 27 Mar 2006 11:39:17 +0000 |
| Subject: | note 40529 deleted from function.max by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-106748@lists.php.net to get a copy of this message | ||
Note Submitter: j dot gizmo at aon dot at
----
regarding that "n/a" stuff, and that with the zerofilled fields, i think that:
when comparing integers with integers, the behaviour is clear.
when comparing integers and strings, the string is cast to an integer.
but when comparing strings with other strings, a string comparison is used. (strings are ordered
like in a dictionary)
eg:
"a"<"b"
"aaa"<"aab"
"aa"<"b"
this explains why "5"<"n/a" (ascii value of "5" is lower than that
of "n") and why "50"<"8" (ascii of "5" vs. "8")