I'm looking for a way to limit a string in php and add on ... at the end if the string was too long.
You can use something similar to the below:
if (strlen($str) > 10) $str = substr($str, 0, 7) . '...';
1.4m articles
1.4m replys
5 comments
57.0k users