php中文截取无乱码

';
            $res .= substr($str,$offset,$count);
            $chars += 1;
            $offset += $count;
        }
        return $res;
    }
$str = '你好aaaaa';
echo cutstr($str,2);

 ?>

文章名称:php中文截取无乱码
当前路径:http://myzitong.com/article/gghcpp.html