note 105055 deleted from function.strcasecmp by danbrown

From: Date: Mon, 25 Jul 2011 15:03:01 +0000
Subject: note 105055 deleted from function.strcasecmp by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181855@lists.php.net to get a copy of this message
Note Submitter: dharple at gmail dot com ---- 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'));

« previous php.notes (#181855) next »