note 21683 added to function.wordwrap

From: Date: Thu, 23 May 2002 07:29:12 +0000
Subject: note 21683 added to function.wordwrap
Groups: php.notes 
Request: Send a blank email to php-notes+get-30931@lists.php.net to get a copy of this message
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); -- http://www.php.net/manual/en/function.wordwrap.php http://master.php.net/manage/user-notes.php?action=edit+21683 http://master.php.net/manage/user-notes.php?action=delete+21683 http://master.php.net/manage/user-notes.php?action=reject+21683

« previous php.notes (#30931) next »