/ Published in: PHP
URL: http://www.justin-cook.com/wp/2006/06/27/php-trim-a-string-without-cutting-any-words/
Expand |
Embed | Plain Text
function neat_trim($str, $n, $delim='…') { if ($len > $n) { } else { return $str; } }
You need to login to post a comment.
