SyntaxFix
Write A Post
Hire A Developer
Questions
if (strlen($string) <=50) { echo $string; } else { echo substr($string, 0, 50) . '...'; }