如何将这些数组合并为一个数组?没有循环? 以及在mysql中的位置?
Array
(
[0] => Array
(
[0] => 82
[1] => 115
[2] => 116
[3] => 117
[4] => 118
[5] => 119
[6] => 120
[7] => 121
[8] => 122
[9] => 123
[10] => 124
[11] => 125
[12] => 126
[13] => 127
[14] => 128
[15] => 129
[16] => 130
[17] => 131
[18] => 132
[19] => 133
)
[1] => Array
(
[0] => 83
[1] => 134
[2] => 135
[3] => 136
[4] => 137
[5] => 138
[6] => 139
[7] => 140
[8] => 141
[9] => 142
[10] => 143
[11] => 144
[12] => 145
)
[2] => Array
(
[0] => 84
[1] => 146
[2] => 147
[3] => 148
[4] => 149
[5] => 150
[6] => 151
[7] => 152
[8] => 153
[9] => 154
[10] => 155
[11] => 156
[12] => 157
[13] => 158
[14] => 159
[15] => 160
[16] => 161
[17] => 162
[18] => 163
[19] => 164
[20] => 165
)
)
答案 0 :(得分:2)
试试这个:
$array = your array
$result = call_user_func_array('array_merge', $array);
echo "<pre>";
print_r($result);
答案 1 :(得分:0)
您必须使用数组合并。
这里的语法为:array array_merge ( array $array1 [, array $... ] )
但是,请记住,这有一定的规则。将覆盖相同的字符串值,并附加相同的数值。