/ Published in: PHP
Used to cleanly truncate text.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function truncateText($string, $limit, $break=" ", $pad="..."){ return $string . $pad;}