Answers for "php limit text to 100 characters and add ellpsis"

PHP
2

php ellipsis

$out = strlen($in) > 50 ? substr($in,0,50)."..." : $in;
Posted by: Guest on July-02-2020
1

php trim string if longer than

substr($str,0,50);
Posted by: Guest on January-30-2020

Code answers related to "php limit text to 100 characters and add ellpsis"

Browse Popular Code Answers by Language