"Cat",1=>"Dog",2=>"Horse"); $a2=array(3=>"Horse",4=>"Dog",5=>"Fish"); print_r(array_intersect($a1,$a2)); ?> ``` 输出: ``` Array ( [1] => Dog [2] => Horse ) ```