note 111314 rejected from function.array-uintersect by danbrown

From: Date: Tue, 05 Mar 2013 16:13:43 +0000
Subject: note 111314 rejected from function.array-uintersect by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-193937@lists.php.net to get a copy of this message
Note Submitter: hermes dot m dot garcia at gmail dot com ---- 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.

« previous php.notes (#193937) next »