dhimok Posted September 18, 2008 Share Posted September 18, 2008 Hi Everyone! I have two arrays in chunks and I want to compare them. If I find chunks from first array that match chunks from the other one then I want to exclude them. Anyone can give me a start idea? Here are the two arrays in chunks: Array ( [0] => Array ( [4] => 1 ) [1] => Array ( [3] => 1 ) ) Array ( [0] => Array ( [4] => 1 ) [1] => Array ( [3] => 1 ) [2] => Array ( [1] => 1 ) ) Thanks in advance! Quote Link to comment Share on other sites More sharing options...
akitchin Posted September 18, 2008 Share Posted September 18, 2008 looks like you want array_diff(). not sure how it'll work two levels deep, but give it a shot. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.