PHP Array Functions – array_diff_assoc() Function

array_diff_assoc() function compares the not only values but it compares the keys of two arrays and return differences between two array. So This php arrays function compare both keys with it’s values also.

source