$tmp = strip_tags($model->content);
$temLen = mb_strlen($tmp);
return mb_substr($tmp,0,20,'utf-8').(($temLen>20)?'...':"");
php 截取一段文字的前20字符
猜你喜欢
转载自www.cnblogs.com/gaogaoxingxing/p/12743499.html
今日推荐
周排行