note 82299 added to function.wordwrap
| From: | robert at codehelpers dot com | Date: | Fri, 04 Apr 2008 16:15:24 +0000 |
| Subject: | note 82299 added to function.wordwrap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137931@lists.php.net to get a copy of this message | ||
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);
?>
----
Server IP: 64.71.164.2
Probable Submitter: 66.112.72.200
----
Manual Page -- http://www.php.net/manual/en/function.wordwrap.php
Edit -- https://master.php.net/note/edit/82299
Del: integrated -- https://master.php.net/note/delete/82299/integrated
Del: useless -- https://master.php.net/note/delete/82299/useless
Del: bad code -- https://master.php.net/note/delete/82299/bad+code
Del: spam -- https://master.php.net/note/delete/82299/spam
Del: non-english -- https://master.php.net/note/delete/82299/non-english
Del: in docs -- https://master.php.net/note/delete/82299/in+docs
Del: other reasons-- https://master.php.net/note/delete/82299
Reject -- https://master.php.net/note/reject/82299
Search -- https://master.php.net/manage/user-notes.php