Re: strcmp()?
| From: | Joshua Kehn | Date: | Mon, 23 May 2011 13:55:16 +0000 |
| Subject: | Re: strcmp()? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313107@lists.php.net to get a copy of this message | ||
On May 23, 2011, at 9:45 AM, tedd wrote:
> At 9:32 AM -0400 5/23/11, Joshua Kehn wrote:
>>
>> All this confusion makes me glad that I'm using === for equality checks instead of
>> strcmp.
>>
>> -Josh
>
> -Josh:
>
> Yes, but what if you were sorting? I know you could use sort(), but there might be logic where
> a strcmp() would better solve the problem.
>
> Cheers,
>
> tedd
> --
> -------
> http://sperling.com/
Never encountered an issue using sort() as-is.
Regards,
-Josh
____________________________________
Joshua Kehn | Josh.kehn@gmail.com
http://joshuakehn.com