代码:

<?php$a = "abc";var_dump(mb_strlen($a,"utf8"));输出:

int(3)[Finished in 0.1s]