Php Array Difference Multidimensional. In other words define multi dimensional arrays as array of arrays. Building a multidimensional array.
Just for future users who might encounter the same issue. So we have to find the values between two arrays and then apply the array diff function. Php allows its multidimensional arrays to be either indexed or associative.
For multidimensional arrays array diff assoc works better than array diff in some cases.
Array in the above case the function returns a blank array. Php supports multidimensional arrays that are two three four five or more levels deep. In other words define multi dimensional arrays as array of arrays. As the name suggests every element in this array can be an array and they can also hold other sub arrays within.