我有3門陣列這樣的:重新組織PHP數組
數組1( [0] => VALUE1-1 [1] => VALUE1-2 [2] => VALUE1-3)
ARRAY2( [0] => VALUE2-1 [1] => VALUE2-2 [2] => VALUE2-3)
ARRAY3( [0] => VALUE3-1 [ 1] => VALUE3-2 [2] => VALUE3-3)
我想要做
Array4( [0] => VALUE1-1 [1] => VALUE2-1 [2這] => VALUE3-1)
Array5( [0] => VALUE1-2 [1] => VALUE2-2 [2] => VALUE3-2)
Array6( [0] => VALUE1-3 [1] => VALUE2-3 [2] => VALUE3-3)
有一種簡單的方法來做到這一點?
謝謝。如果我在array1/array2/array3中有3個以上的值。有沒有一種方法來計數值(每個數組的數量相同)並列出創建的數組的數量? – user2145444 2013-03-07 18:29:33
@ user2145444:像count($ newArray)''? – 2013-03-07 18:31:07