note 128255 added to function.array-unique
| From: | ts at nospam dot com | Date: | Sun, 26 Feb 2023 10:12:49 +0000 |
| Subject: | note 128255 added to function.array-unique | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220213@lists.php.net to get a copy of this message | ||
I suggest adding '$characters' parameter to this function, like the one in ltrim()
function.
Purpose of this parameter should be to skip defined characters, like the char "\n".
Example for usage is when working with lines of text, and after array_unique() processing you want
to keep original line spacing.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 213.149.62.25)
----
Manual Page -- https://php.net/manual/en/function.array-unique.php
Edit -- https://main.php.net/note/edit/128255
Del: integrated -- https://main.php.net/note/delete/128255/integrated
Del: useless -- https://main.php.net/note/delete/128255/useless
Del: bad code -- https://main.php.net/note/delete/128255/bad+code
Del: spam -- https://main.php.net/note/delete/128255/spam
Del: non-english -- https://main.php.net/note/delete/128255/non-english
Del: in docs -- https://main.php.net/note/delete/128255/in+docs
Del: other reasons-- https://main.php.net/note/delete/128255
Reject -- https://main.php.net/note/reject/128255
Search -- https://main.php.net/manage/user-notes.php