returning elements from array 1 not in array 2

From: Date: Tue, 01 Nov 2005 21:36:50 +0000
Subject: returning elements from array 1 not in array 2
Groups: php.general 
Request: Send a blank email to php-general+get-224915@lists.php.net to get a copy of this message
I have two different arrays. What is the function to remove all of the elements from array 1 that are not in array 2 and return them. Array_diff seems to give me that plus ones with different values, I simply want all of the ones from one array that are not in another array and want them removed from the one array. Thanks.

« previous php.general (#224915) next »