2015-04-20 88 views
-2

如何從1輸出2輸出?如何從1輸出2輸出

<?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 
     ); 
+2

所以,你有** **陣列的要** **合併,所以邏輯函數名**()**會是:'array_merge()'](HTTP:// PHP .net/manual/en/function.array-merge.php) – Rizier123

+0

如何使用array_merge()? –

+0

向谷歌求助或閱讀說明書!我們不能爲你學習 – Rizier123

回答

0

使用array_merge功能描述here