in reply to match array content of first and second match
You've posted your array, and your expected output, can you post the code that hasn't produced that expected output? That'll help loads in determining what you may be doing wrong (learning experience) or even if there is a better way of doing it.