"apple", "b"=>"ball", "c"=>"cat"); $array2 = array("A"=>"airplane", "x"=>"xylophone", "y"=>"yacht"); // Computing the intersection $result = array_intersect_ukey($array1, $array2, "compare"); print_r($result); ?>