当前位置:Gxlcms > PHP教程 > php数组函数之array_combine()数组合并函数

php数组函数之array_combine()数组合并函数

时间:2021-07-01 10:21:17 帮助过:20人阅读

  1. $a1=array("a","b","c","d");
  2. $a2=array("Cat","Dog","Horse","Cow");
  3. print_r(array_combine($a1,$a2));
  4. ?>

输出: Array ( [a] => Cat => Dog [c] => Horse [d] => Cow )

人气教程排行