首頁 >php教程 >php手册 >php数组的合并与拆分

php数组的合并与拆分

WBOY
WBOY原創
2016-06-06 20:00:031061瀏覽

?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

 

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn