"apple", "b"=>"ball", "c"=>"cat", "dog"); $array2 = array("A"=>"APPLE", "B"=>"ball", "c"=>"camel"); // Computing the intersection $result = array_intersect_uassoc($array1, $array2, "compare"); print_r($result); ?>