您的位置: 首页 > 文章 > php统计中文汉字长度 php统计中文汉字长度 分类: 文章 • 2022-09-04 09:57:56 代码: <?php $a = "abc"; var_dump(mb_strlen($a,"utf8")); 输出: int(3) [Finished in 0.1s]