note 76484 added to function.array-diff
| From: | nilsandre at gmx dot de | Date: | Tue, 17 Jul 2007 16:45:24 +0000 |
| Subject: | note 76484 added to function.array-diff | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128666@lists.php.net to get a copy of this message | ||
Again, the function's description is misleading right now. I sought a function, which
(mathematically) computes A - B, or, written differently, A \ B. Or, again in other words, suppose
A := {a1, ..., an} and B:= {a1, b1, ... , bm}
=> array_diff(A,B) = {a2, ..., an}
array_diff(A,B) returns all elements from A, which are not elements of B (= A without B).
You should include this in the documentation more precisely, I think.
----
Server IP: 217.13.201.10
Probable Submitter: 62.214.206.117
----
Manual Page -- http://www.php.net/manual/en/function.array-diff.php
Edit -- https://master.php.net/note/edit/76484
Del: integrated -- https://master.php.net/note/delete/76484/integrated
Del: useless -- https://master.php.net/note/delete/76484/useless
Del: bad code -- https://master.php.net/note/delete/76484/bad+code
Del: spam -- https://master.php.net/note/delete/76484/spam
Del: non-english -- https://master.php.net/note/delete/76484/non-english
Del: in docs -- https://master.php.net/note/delete/76484/in+docs
Del: other reasons-- https://master.php.net/note/delete/76484
Reject -- https://master.php.net/note/reject/76484
Search -- https://master.php.net/manage/user-notes.php