Tags
, ,
Asked 30+ days ago
21 Sep 2017
Views 115
pratik

pratik posted

limit text in php

how to limit text in php
Mitul Dabhi

Mitul Dabhi
answered Jan 22 '18 20:17


function strwrap($content){
	if(strlen($content)>150){
		return substr(strip_tags($content),0,150)."...";
	} else {
		return $content;
	}
}
Edit Answer
Share
Post Answer