Re: strcmp()?
| From: | David Harkness | Date: | Tue, 24 May 2011 18:10:38 +0000 |
| Subject: | Re: strcmp()? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313132@lists.php.net to get a copy of this message | ||
On Tue, May 24, 2011 at 12:48 AM, Vitalii Demianets <vitas@nppfactor.kiev.ua
> wrote:
> So. to write compatible scripts one should check "< 0", not "== -1".
>
Which matches the documentation:
Returns < 0 if str1 is less than str2; > 0 if str1 is greater than str2,
and 0 if they are equal.
David