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