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
You can use CSS to accomplish this.
word-wrap: break-word;
That will break the word for you. Here is a link to see it in action:
http://www.css3.info/preview/word-wrap/