note 128656 added to function.trim
| From: | gwyneth dot llewelyn at gwynethllewelyn dot net | Date: | Mon, 03 Jul 2023 19:04:16 +0000 |
| Subject: | note 128656 added to function.trim | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220617@lists.php.net to get a copy of this message | ||
Note that trim() is not aware of Unicode points that represent whitespace (e.g., in the General
Punctuation block), except, of course, for the ones mentioned in this page.
There is no Unicode-specific trim function in PHP at the time of writing (July 2023), but you can
try some examples of trims using multibyte strings posted on the comments for the mbstring
extension: https://www.php.net/manual/en/ref.mbstring.php
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.159.168 (proxied: 2001:818:ddcf:5900:34ed:ca4c:6a4b:acc0)
----
Manual Page -- https://php.net/manual/en/function.trim.php
Edit -- https://main.php.net/note/edit/128656
Del: integrated -- https://main.php.net/note/delete/128656/integrated
Del: useless -- https://main.php.net/note/delete/128656/useless
Del: bad code -- https://main.php.net/note/delete/128656/bad+code
Del: spam -- https://main.php.net/note/delete/128656/spam
Del: non-english -- https://main.php.net/note/delete/128656/non-english
Del: in docs -- https://main.php.net/note/delete/128656/in+docs
Del: other reasons-- https://main.php.net/note/delete/128656
Reject -- https://main.php.net/note/reject/128656
Search -- https://main.php.net/manage/user-notes.php