截取字一段文字

<?php
                        $str = $row['title'];
                        $lenth = strlen($str);
                        if($lenth>=48){
                        $str = substr($str,0,42)."...";}
echo $str;?>php

相關文章
相關標籤/搜索