$a1=array("a","b","c","d"); $a2=array("Cat","Dog","Horse","Cow"); print_r(array_combine($a1,$a2)); ?> 复制代码 输出: Array ( [a] => Cat => Dog [c] => Horse [d] => Cow )