/* *中文截取无乱码 */ function showsubstr_chinese($str, $start, $length = null) { return join("", array_slice( preg_split("//u", $str, -1, PREG_SPLIT_NO_EMPTY), $start, $length)); }
中文截取无乱码
原文:http://www.cnblogs.com/hgj123/p/4544851.html