note 46876 added to function.wordwrap
| From: | ophirprusak at osu1 dot php dot net | Date: | Tue, 26 Oct 2004 17:53:23 +0000 |
| Subject: | note 46876 added to function.wordwrap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79136@lists.php.net to get a copy of this message | ||
There is an error in the documentation. The docs currently say:
If the cut is set to 1, the string is always wrapped at the specified width. So if you have a word
that is larger than the given width, it is broken apart. (See second example).
It should be something like this:
If the cut is set to 1, words longer than the given width will be wrapped at the specified width,
otherwise they will not be wrapped at all. Words that are not longer than width are not effected by
the cut parameter.
Ophir Prusak
----
Manual Page -- http://www.php.net/manual/en/function.wordwrap.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46876
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46876&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46876&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46876&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46876&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46876&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46876&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46876&report=yes
Search -- http://master.php.net/manage/user-notes.php