I have three arrays in PHP. Example structure of arrays is as given below. I want to check if id is present in first then value with that it should not be repeated in any other arrays. fo eg in arrays below record with id 200 is present in first array then it is again in third array so I want to remove c0 from third array there will be 9 such arrays. What will be dynamic way for it.
Array
(
[a0] => Array
(
[id] => 100
[Country] => some country
)
[a1] => Array
(
[id] => 200
[Country] => some country
)
)
Array
(
[b0] => Array
(
[id] =>300
[Country] => some country
)
[b1] => Array
(
[id] => 100
[Country] => some country
[city] => some city
)
)
Array
(
[c0] => Array
(
[id] =>200
[Country] => some country
[state] => some state
)
[c1] => Array
(
[id] => 400
[Country] => some country
)
)