source: branches/rsr.v5.1.dev/web/punbb/include/utf8/strcasecmp.php @ 3

Last change on this file since 3 was 3, checked in by dj3c1t, 13 years ago

passage a Fluxbb 1.4.7

File size: 526 bytes
Line 
1<?php
2
3/**
4* @version $Id: strcasecmp.php,v 1.1 2006/02/25 13:50:17 harryf Exp $
5* @package utf8
6* @subpackage strings
7*/
8
9/**
10* UTF-8 aware alternative to strcasecmp
11* A case insensivite string comparison
12* Note: requires utf8_strtolower
13* @param string
14* @param string
15* @return int
16* @see http://www.php.net/strcasecmp
17* @see utf8_strtolower
18* @package utf8
19* @subpackage strings
20*/
21function utf8_strcasecmp($strX, $strY)
22{
23        $strX = utf8_strtolower($strX);
24        $strY = utf8_strtolower($strY);
25
26        return strcmp($strX, $strY);
27}
Note: See TracBrowser for help on using the repository browser.