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

(strlen($string) + mb_strlen($string,'UTF8')) / 2;
tw 这样计算的

  

猜你喜欢

转载自www.cnblogs.com/cbugs/p/11245241.html