in reply to how to compare 2 array
Using Super Search, you'll find that this problem has been asked and solved several times. A few good ones to consider: