static function utf8_strlen($string){
$string=trim($string);
if(empty($string)) return 0;
// 将字符串分解为单元
preg_match_all("/./us", $string, $match);
// 返回单元个数
return count($match[0]);
}
static function utf8_strlen($string){
$string=trim($string);
if(empty($string)) return 0;
// 将字符串分解为单元
preg_match_all("/./us", $string, $match);
// 返回单元个数
return count($match[0]);
}