Wed, 2007-08-22 13:55.
i reworked the feed reading signature images i made a while back and added something to trim the strings to a decent length without breaking words. so here you go. a one-liner that'll trim a string to a decent length, and break it on whitespace:
if (strlen($blog_title) > 35) $blog_title =
array_shift(explode("|||", wordwrap($blog_title,
35, "|||"))) . "...";