Re: When is "z" != "z" ?
| From: | tedd | Date: | Sun, 04 Jun 2006 20:45:53 +0000 |
| Subject: | Re: When is "z" != "z" ? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237376@lists.php.net to get a copy of this message | ||
At 1:09 PM -0700 6/4/06, Rasmus Lerdorf wrote:
>>I agree with [1] and [2], but [3] is where we part company. You see, if you are right, then
>>"aaa" would also be less than "z", but that doesn't appear so.
>
>Of course it is.
>
>php -r 'echo "aaa" < "z";'
>1
You missed the point, why does --
for ($i="a"; $i<="z"; $i++)
{
echo($i);
}
-- not continue past "aaa"? Clearly, if "aaa" is less than "z" then
why does the loop stop at "yz"?
In any event, I'll stop my rant now, I thought we were having a discussion.
tedd
--
------------------------------------------------------------------------------------
http://sperling.com http://ancientstones.com http://earthstones.com