PHP里不是有这样的API吗?string mb_substr ( string str, int start [, int length [, string encoding]])
mb_substr() returns the portion of str specified by the start and length parameters.
mb_substr() returns the portion of str specified by the start and length parameters.
这是个好东西,哈哈
http://sfcube.cxc.cc/index.php
用的不是你的方法