Here is the question: How would your trim a block of text to the nearest word when a certain amount of characters have past. I\'m not trying to limit a certain number words
See the wordwrap function.
I would probably do something like:
function wrap($string) { $wstring = explode("\n", wordwrap($string, 27, "\n") ); return $wstring[0]; }
(If your strings already span across severeal lines, use other char - or pattern - for the split other than "\n")