note 126132 added to function.wordwrap
| From: | Anonymous at main dot php dot net | Date: | Wed, 02 Jun 2021 07:28:07 +0000 |
| Subject: | note 126132 added to function.wordwrap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216462@lists.php.net to get a copy of this message | ||
There seems to be a bit of a glaring flaw with php's wordwrap method.
Let's say you have a maximum length of 20 chars per line, and do not want words to be cut in
two - this functions immediately useless to you.
It provides no way of wrapping a long word down onto the next line, so you're either forced to
chop that word in two, or let it run past the maximum length you set, which in a real word usecase
is rarely going to be an option.
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 188.39.171.162)
----
Manual Page -- https://php.net/manual/en/function.wordwrap.php
Edit -- https://main.php.net/note/edit/126132
Del: integrated -- https://main.php.net/note/delete/126132/integrated
Del: useless -- https://main.php.net/note/delete/126132/useless
Del: bad code -- https://main.php.net/note/delete/126132/bad+code
Del: spam -- https://main.php.net/note/delete/126132/spam
Del: non-english -- https://main.php.net/note/delete/126132/non-english
Del: in docs -- https://main.php.net/note/delete/126132/in+docs
Del: other reasons-- https://main.php.net/note/delete/126132
Reject -- https://main.php.net/note/reject/126132
Search -- https://main.php.net/manage/user-notes.php