Tags
PHP , limit , Text
Asked 7 years ago
21 Sep 2017
Views 866
pratik

pratik posted

limit text in php

how to limit text in php
Mitul Dabhi

Mitul Dabhi
answered Nov 30 '-1 00:00


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