欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

php数组的合并与拆分

程序员文章站 2022-04-06 09:20:40
...

?php$array1 = array("A","B","C","D");$array2 = array("1","2","3","4");$array3 = array("!","@","#","$");$arrayX = array_merge($array1, $array2, $array3);//将3个数组合并起来print_r($arrayX);? ?php$array1 = array("AA"="A","BB"="B","CC"="C","D