My first array is
Array (
[0] => Array
(
[user_id] => 1
[name] => name1
)
[1] => Array
(
[user_id] => 2
[name] => name2
)
)
My Secondarray is
Array (
[0] => Array
(
[user_id] => 2
[name] => name2
)
[1] => Array
(
[user_id] => 3
[name] => name3
)
)
The common array is the array with user_id=2 how to select that array ?
I want the intersection of that two arrays.
This is an workaround, but if i where you i consider changing the geometry of the tow arrays in such a way to be able to use dedicated function implemented in PHP witch are more faster then this.