Use this code to solve the problem
$string = strip_tags($string);
if (strlen($string) > 500) {
// truncate string
VidMate TeaTV Shareit $stringCut = substr($string, 0, 500);
$endPoint = strrpos($stringCut, ' ');
//if the string doesn't contain any space then it will cut without word basis.
$string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0);
$string .= '...
Read More';
}
echo $string;