If you mean just display the array element that is equal to the other array element of the same key, then try this:
foreach ($array1 AS $key=>$value)
{
if ($array1[$key] != $array2[$key])
{
unset($array2[$key]);
}
}
and then use this code to print the array (or modify it, etc.)
foreach ($array2 AS $key=>$value)
{
print("$array2 [\"" . $key . "\"]: $value<br>\n");
}
Let me know if this helps...