array_intersect problem

From: Date: Tue, 26 Dec 2006 02:51:41 +0000
Subject: array_intersect problem
Groups: php.general 
Request: Send a blank email to php-general+get-246216@lists.php.net to get a copy of this message
Hi, I try to intersect associative array and it seems to fail to do so. Can anyone show me a walk around? For example I have array1 Array ( [0] => Array ( [imageID] => 1 ) [1] => Array ( [imageID] => 2 ) [2] => Array ( [imageID] => 3 ) [3] => Array ( [imageID] => 4 ) ) And array 2 Array ( [0] => Array ( [imageID] => 6 ) [1] => Array ( [imageID] => 3 ) ) After intersection instead of me getting 3 as a result, I got the array 1 unchanged. Seems like intersection doesn't take place at all. Anyway to solve this problem? Regards, Leo Reality starts with Dream __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.general (#246216) next »