I want to remove all elements from arr2 that have a type contained in arr1:
arr1 = ['A', 'B', 'C']
arr2 = [
[
'name' => 'jane',
'type' => 'X'
],
[
'name' => 'jon',
'type' => 'B'
]
]
So jon should be removed. Is there some built in function like array_diff?