PHPは文字列の長さを取得して、中国語の句読点あるいは中国語の漢字は1つの文字を計算します


$zhStr = "      :      、    、     ,      (     4、4S  ),         ,          。   :    716、717。      ,  :15136231967QQ:1368277946";
function utf8_strlen($string = null) {
//          
preg_match_all("/./us", $string, $match);
//       
return count($match[0]);
}
echo utf8_strlen($zhStr);