I\'m looking for a way to make word-wrap in PHP a bit smarter. So it doesn\'t pre-break long words leaving any prior small words alone on one line.
Let\'s say I have
This should do the trick...
$word = "hello!" . wordwrap('heeeeeeeeeeeeeeereisaverylongword', 25, '', true); echo $word;