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