note 82299 deleted from function.wordwrap by danbrown

From: Date: Sun, 17 May 2009 18:28:16 +0000
Subject: note 82299 deleted from function.wordwrap by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155119@lists.php.net to get a copy of this message
Note Submitter: robert at codehelpers dot com ---- When using wordwrap() on a long word (an English word), It's best to use "-\n" as the '$string break' argument. Why? Because when you're forcing a cut (as bool TRUE), proper English is to include the hyphen to let the reader know that a certain word is being continued on the next line. A good example would be like: http://www.codehelpers.com/Worlds%20Longest%20English%20Word.php <?php echo wordwrap($word, 100, "-\n", true); ?>

« previous php.notes (#155119) next »