"apple", "b"=>"ball", "c"=>"cat", "dog"); $array2 = array("a"=>"apple", "banana", "papaya"); // Computing the difference $result = array_diff_assoc($array1, $array2); print_r($result); ?>