I have 2 multidimensional array
array1
0 => array (105, 44, 20, 0)
1 => array (106, 44, 21, 2)
2 => array (107, 45, 20, 0)
array2
0 => array (124, 44, 20, 1)
1 => array (105, 44, 20, 0)
2 => array (107, 45, 20, 0)
And now I need to find if elements from array1 are in array2 without changes.
I need create array1, then user change some values in array, remove some arrays, or reorder it. It will create array2. And after that I need compare if array from array1[0] with all his values exists in array2, and do it for all elements in array1. If element from array1 is the same in array2 I will save it to db. If element was removed and is not located in array2, or some values was changed I need delete it from db. thanks a lot