note 130440 added to function.wordwrap
| From: | blackboxtheproject@gmail.com | Date: | Fri, 01 Aug 2025 20:32:28 +0000 |
| Subject: | note 130440 added to function.wordwrap | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222298@lists.php.net to get a copy of this message | ||
Note this is not the right tool to fold/wrap email headers, iCalender etc.
It does not handle white space correctly for those purposes. Instead use chunk eg:
$str2= chunk_split($str, $size, "\r\n ");
$str2= rtrim($str2);
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 114.23.102.203)
----
Manual Page -- https://php.net/manual/en/function.wordwrap.php
Edit -- https://main.php.net/note/edit/130440
Del: integrated -- https://main.php.net/note/delete/130440/integrated
Del: useless -- https://main.php.net/note/delete/130440/useless
Del: bad code -- https://main.php.net/note/delete/130440/bad+code
Del: spam -- https://main.php.net/note/delete/130440/spam
Del: non-english -- https://main.php.net/note/delete/130440/non-english
Del: in docs -- https://main.php.net/note/delete/130440/in+docs
Del: other reasons-- https://main.php.net/note/delete/130440
Reject -- https://main.php.net/note/reject/130440
Search -- https://main.php.net/manage/user-notes.php