"apple", "b"=>"ball", "c"=>"cat", "dog"); $array2 = array("a"=>"APPLE", "B"=>"ball", "c"=>"Cat"); // Computing the intersection $result = array_uintersect_uassoc($array1, $array2, "compareValue", "compareKey"); print_r($result); ?>