"red", "b"=>"green", "c"=>"blue", "d"=>"yellow"); $array2 = array("x"=>"black", "y"=>"blue", "z"=>"red"); // Computing the difference $result = array_diff($array1, $array2); print_r($result); ?>