I agree with with scrupul0us,
However, there is a function in the php manual for array_diff here to compare objects.
<?php
function array_obj_diff ($array1, $array2) {
foreach ($array1 as $key => $value) {
$array1[$key] = serialize ($value);
}
foreach ($array2 as $key => $value) {
$array2[$key] = serialize ($value);
}
$array_diff = array_diff ($array1, $array2);
foreach ($array_diff as $key => $value) {
$array_diff[$key] = unserialize ($value);
}
return $array_diff;
}
?>
Granted I havn't tried this, you could bring them both in as SimpleXML objects and make the comparison.