in reply to Matching elements inside two array

Start by reading the FAQ How do I compute the difference of two arrays? How do I compute the intersection of two arrays?