note 26351 deleted from function.wordwrap by danbrown

From: Date: Sun, 17 May 2009 18:38:27 +0000
Subject: note 26351 deleted from function.wordwrap by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155156@lists.php.net to get a copy of this message
Note Submitter: matt at prototype-productions dot de ---- I've extended one of the examples above so it does wrap "words" longer than a specific limit but will (in most cases) not touch any URLs since you may allow links in your messageboard/guestbook: $message = ereg_replace("([^ \/]{32})","\\1<wbr>",$message); Note that the slash will usually prevent URLs from being messed up if no single segment is longer than the given limit.

« previous php.notes (#155156) next »