I\'m trying to come up with the following function that truncates string to whole words (if possible, otherwise it should truncate to chars):
function Text_T
Have you considered using wordwrap? (http://us3.php.net/wordwrap)