比如多个一维数组如下。
array(2) {
["address"] => string(6) "广东"
["tongji"] => string(1) "10"
}
array(2) {
["address"] => string(9) "深圳"
["tongji"] => string(1) "2"
}
array(2) {
["address"] => string(6) "广州"
["tongji"] => string(1) "4"
}
转换成如下二维数组
array(3) {
[1] => array(2) {
["address"] => string(6) "广东"
["tongji"] => string(1) "10"
}
[2] => array(2) {
["address"] => string(9) "深证"
["tongji"] => string(1) "2"
}
[] => array(2) {
["address"] => string(6) "广州"
["tongji"] => string(1) "4"
}
}