php计算中英文混搭字符串长度

preg_match_all('/./us', $content, $match);
count($match[0]);//中英文按相同字符数计算

  

posted @ 2015-04-29 15:31  笑月儿  Views(131)  Comments(0Edit  收藏  举报