note 30564 added to function.chr

From: Date: Sat, 22 Mar 2003 07:26:13 +0000
Subject: note 30564 added to function.chr
Groups: php.notes 
Request: Send a blank email to php-notes+get-45631@lists.php.net to get a copy of this message
I usally used this code to test a Chinese string: $chinese_str = "³Â²®ÀÖ"; if (preg_match("/^[".chr(0xa1)."-".chr(0xff)."_-]+$/",$chinese_str) { echo 'This is a Chinese word..'; } else { echo 'This is not a Chinese word..'; } -- http://www.php.net/manual/en/function.chr.php http://master.php.net/manage/user-notes.php?action=edit+30564 http://master.php.net/manage/user-notes.php?action=delete+30564 http://master.php.net/manage/user-notes.php?action=reject+30564

« previous php.notes (#45631) next »