"apple", "b"=>"ball", "c"=>"cat", "d"=>"dog"); $array2 = array("a"=>"Apple", "B"=>"ball", "c"=>"camel", "d"=>"DOG"); // Computing the intersection $result = array_uintersect_assoc($array1, $array2, "compare"); print_r($result); ?>