Re: strcmp()?
| From: | Joshua Kehn | Date: | Mon, 23 May 2011 12:24:02 +0000 |
| Subject: | Re: strcmp()? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313094@lists.php.net to get a copy of this message | ||
On May 23, 2011, at 8:17 AM, tedd wrote:
>> > Mike:
>>>
>>> That's interesting. Try the same comparisons here:
>>>
>>> http://www.webbytedd.com/lcc/citw229/string-compare.php
>>>
>> > For me they are 1, -1, and 1.
>>
>> Might that have something to do with the version of PHP running?
>>
>>
>> -Josh
>
>
> -Josh:
>
> I've written this on two different servers.
>
> One is Version 5.2.15 and the other is version 5.2.5 and they both report the same results.
>
> Cheers,
>
> tedd
I just checked under 5.3.2 and it gives the same -1, 0, 1 results.
Regards,
-Josh
____________________________________
Joshua Kehn | Josh.kehn@gmail.com
http://joshuakehn.com