$arr1 = ['a','b','c','d','e']; $arr2 = [1,2,3,4,5]; $arr = array_combine($arr1,$arr2); echo ''; print_r($arr); result: Array ( [a] => 1 [b] => 2 [c] => 3 [d] => 4 [e] => 5 ) 登录后复制