If you want a simple way to show values that are in either array, but not both, you can use this:
<?php
function arrayDiff($A, $B) {
$intersect = array_intersect($A, $B);
return array_merge(array_diff($A, $intersect), array_diff($B, $intersect));
}
?>
If you want to account for keys, use array_diff_assoc() instead; and if you want to remove empty values, use array_filter().