note 10498 deleted from ref.strings by maxim

From: Date: Tue, 12 Nov 2002 16:18:13 +0000
Subject: note 10498 deleted from ref.strings by maxim
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-39393@lists.php.net to get a copy of this message
Here's some of my code for inserting spaces so people can't screw the page, I have not tested it, but it's cleaner than other's. list ($words) = array (split (" ", $comment)); $comment = ''; foreach ($words as $c => $word) { if (strlen ($word) > 60 and !ereg ("[\[|\]|\/\/]", $word)) $word = chunk_split ($word, 60); if ($c) $comment .= ' '; $comment .= $word; }

« previous php.notes (#39393) next »