/ Published in: PHP
Creates excerpt that breaks at end of word.
Expand |
Embed | Plain Text
function excerpt($string='', $maxChar=50, $uri='#') { if ($length < $maxChar) { return $string; } $newString = $choppedString . ' <a href="' . $uri . '">more</a>'; return $newString; }
You need to login to post a comment.
