代码:<?php $a = "abc"; var_dump(mb_strlen($a,"utf8")); 输出:int(3) [Finished in 0.1s] 本文转自 Lee_吉 51CTO博客,原文链接:http://blog.51cto.com/12173069/2062666