It's an FAQ: How do I compute the intersection of two arrays?
In reply to Re: Compare two arrays by hippo in thread Compare two arrays by Anonymous Monk