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