3, "x"=>8, "4"=>13); // Computing the intersection $result = array_intersect_key($array1, $array2); print_r($result); ?>