From the page:
Note: Please note that this function only checks one dimension of a n-dimensional array. Of course you can check deeper dimensions by using array_diff($array1[0], $array2[0]);
I've found a way to bypass that. I had 2 arrays made of arrays.
I wanted to extract from the first array all the arrays not found in the second array. So I used the serialize() function:
<?php
function my_serialize(&$arr,$pos){
$arr = serialize($arr);
}
function my_unserialize(&$arr,$pos){
$arr = unserialize($arr);
}
$first_array_s = $first_array;
$second_array_s = $second_array;
array_walk($first_array_s,'my_serialize');
array_walk($second_array_s,'my_serialize');
$diff = array_diff($first_array_s,$second_array_s);
array_walk($diff,'my_unserialize');
print_r($diff);
?>