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

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

  

原文地址:https://www.cnblogs.com/xiaoyueer/p/4466139.html