note 111314 added to function.array-uintersect
| From: | hermes dot m dot garcia at gmail dot com | Date: | Tue, 05 Feb 2013 16:08:08 +0000 |
| Subject: | note 111314 added to function.array-uintersect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193534@lists.php.net to get a copy of this message | ||
Why does the user function must return three values (0, 1, -1) instead of just two?
This is necesary for the correct execution of array_uintersect, as this function first ORDERS the
arrays before comparing in search of the intersection. Therefore the user function is called a
different amount of times one would expect.
----
Server IP: 69.147.83.199
Probable Submitter: 190.221.129.5
----
Manual Page -- http://php.net/manual/en/function.array-uintersect.php
Edit -- https://master.php.net/note/edit/111314
Del: integrated -- https://master.php.net/note/delete/111314/integrated
Del: useless -- https://master.php.net/note/delete/111314/useless
Del: bad code -- https://master.php.net/note/delete/111314/bad+code
Del: spam -- https://master.php.net/note/delete/111314/spam
Del: non-english -- https://master.php.net/note/delete/111314/non-english
Del: in docs -- https://master.php.net/note/delete/111314/in+docs
Del: other reasons-- https://master.php.net/note/delete/111314
Reject -- https://master.php.net/note/reject/111314
Search -- https://master.php.net/manage/user-notes.php