1. 代码:
    <?php
    $a = "abc";
    var_dump(mb_strlen($a,"utf8"));
  2. 输出:
    int(3)
    [Finished in 0.1s]