<?php
$str='你好啊';
echo mb_substr($str,0,2,'utf-8');//截取前面2个字,你好
?>
12-18
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交