I was just wondering if php had built in functions to filter an array based on the key of another array?
array 1 - is a list of all users and their basic info
array 2 - contains a meeting schedule with the users id's
e.g.
array 1 [0]([user_id], [name], [age], [contact]),
[1]([user_id], [name], [age], [contact])
etc.
array 2 [0]([user_id], [time], [date], [place])
[1]([user_id], [time], [date], [place])
Is there a way to filter array 1 so that it only contains the rows that correspond to the [user_id] in array 2.
I understand that I could use loops and custom functions to achieve this however, I just wanted to see if there was a simple way.
Thanks