There are two arrays, the first is:
[0]=> { ["AAA"]=>"123" ["BBB"]=>"11" } [1]=> { ["AAA"]=>"321" ["BBB"]=>"13" } The second array looks like this:
[0]=> { ["aaa"]=>"123" } [1]=> { ["aaa"]=>"111" } It is necessary to compare ["AAA"] and ["aaa"], if in the second array there is no value from the first, then write ["AAA"] and ["BBB"] to the new array.