Back

Read more Function

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

function readMoreText($text,$limit=10,$removeTags=true) { if($removeTags){ $text=strip_tags($text); } if(strlen($text)<$limit){return $text;} else{ $arr=explode(' ',substr($text,0,$limit)); unset($arr[sizeof($arr)-1]); return implode(' ',$arr); } }