The following will recursively do an array_diff_assoc, which will calculate differences on a multi-dimensional level. This not display any notices if a key don't exist and if error_reporting is set to E_ALL:

A quite simple (yet not very efficient) way to compare the first level of arrays which have values that are not strings:array_map('unserialize',array_diff_assoc(array_map('serialize',$arr1),array_map('serialize',$arr2)))Might be useful for debugging (that's what I use it for).

there is a functiont that i searched long enough now i have created it so someone else to find it if he need it ;]<?phpfunction compare_two_object_recursive($object_1, $object_2, $object_1_Identifier = false, $object_2_Identifier = false){$object1 = (array)$object_1;$object2 = (array)$object_2;$object3 = array();