/** 判断中英字符长度*/public function appCountStr($str){preg_match_all("/./us",$str,$matches);return count(current($matches));}