php中文截取无乱码
'; $res .= substr($str,$offset,$count); $chars += 1; $offset += $count; } return $res; } $str = '你好aaaaa'; echo cutstr($str,2); ?>
新闻标题:php中文截取无乱码
文章分享:http://scyanting.com/article/gghcpp.html
'; $res .= substr($str,$offset,$count); $chars += 1; $offset += $count; } return $res; } $str = '你好aaaaa'; echo cutstr($str,2); ?>