note 86255 rejected from function.setlocale by danbrown
| From: | danbrown@php.net | Date: | Thu, 09 Oct 2008 17:24:00 +0000 |
| Subject: | note 86255 rejected from function.setlocale by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-145221@lists.php.net to get a copy of this message | ||
Note Submitter: raj at ap dot krakow dot pl
----
Why strcmp("15355-1.jpg","15355.jpg") returns -1?
"15355.jpg" is shorter than "15355-1.jpg", so it should clearly be
alphabetically earlier, so the result of comparison should be 1, and not -1.