如何从2输出1输出?
<?php
[a] => Array
(
[0] => 72.89.122.00:50827
[1] => 62.173.145.00:17211
);
[b] => Array
(
[0] => 61.10.231.00:52151
[1] => 66.171.81.00:41787
);
?>
我需要输出:
[total] => Array
(
[0] => 72.89.122.00:50827
[1] => 62.173.145.00:17211
[2] => 61.10.231.00:52151
[3] => 66.171.81.00:41787
);
答案 0 :(得分:0)
看一下array_merge(); http://php.net/manual/en/function.array-merge.php
$newArray = array_merge($a,$b);
答案 1 :(得分:0)
使用here所述的array_merge
功能。