note 105055 added to function.strcasecmp
| From: | dharple at gmail dot com | Date: | Mon, 25 Jul 2011 15:00:25 +0000 |
| Subject: | note 105055 added to function.strcasecmp | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181854@lists.php.net to get a copy of this message | ||
alvaro:
You can use mb_strtolower() to convert the UTF-8 strings to lowercase, and then compare the results
using strcmp(). i.e.:
strcmp(mb_strtolower($str1, 'UTF-8'), mb_strtolower($str2, 'UTF-8'));
----
Server IP: 190.2.55.64
Probable Submitter: 216.130.239.172
----
Manual Page -- http://www.php.net/manual/en/function.strcasecmp.php
Edit -- https://master.php.net/note/edit/105055
Del: integrated -- https://master.php.net/note/delete/105055/integrated
Del: useless -- https://master.php.net/note/delete/105055/useless
Del: bad code -- https://master.php.net/note/delete/105055/bad+code
Del: spam -- https://master.php.net/note/delete/105055/spam
Del: non-english -- https://master.php.net/note/delete/105055/non-english
Del: in docs -- https://master.php.net/note/delete/105055/in+docs
Del: other reasons-- https://master.php.net/note/delete/105055
Reject -- https://master.php.net/note/reject/105055
Search -- https://master.php.net/manage/user-notes.php