日期:2014-05-17 浏览次数:20468 次
$title="php字符串截取问题得得得顶顶顶顶顶顶【送分题】"; $len=mb_strlen($title,'utf-8'); echo $len>10 ? mb_substr($title,0,10,'utf-8').'...' : $title;