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