PHP中英文截取无乱码,包括全角下的字符
作者:步山 / 发布于2014/11/10/ 339

符合UTF-8下,如果GBK下 改为 $content .= $str[$sing].$str[$sing+1]; $sing += 3; 改为 $sing += 2;

评论列表