3 * @version $Id: strcasecmp.php,v 1.1 2006/02/25 13:50:17 harryf Exp $
8 //---------------------------------------------------------------
10 * UTF-8 aware alternative to strcasecmp
11 * A case insensivite string comparison
12 * Note: requires utf8_strtolower
16 * @see http://www.php.net/strcasecmp
17 * @see utf8_strtolower
21 function utf8_strcasecmp($strX, $strY) {
22 $strX = utf8_strtolower($strX);
23 $strY = utf8_strtolower($strY);
24 return strcmp($strX, $strY);