note 21683 deleted from function.wordwrap by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 18:39:44 +0000 |
| Subject: | note 21683 deleted from function.wordwrap by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155161@lists.php.net to get a copy of this message | ||
Note Submitter:
----
I use this for word-wrapping. It brakes up long words (wich are not real words, since often these
long, table breaking, texts are URLs or evil text ment to make the tables look bad). I have some
problems with URLs, since it will just simply put a <br> tag in it, etc. But for the most part
it works perfectly; since few people ever write words beyond 42 characters, and all otherwords are
managed within the table by the webbrowser.
$message = ereg_replace("([^ ]{42})","\\1<br>",$message);