Array
(
[Order] => Array
(
[0] => Alan Donald
[1] => AB Divilliars
[2] => Craig Macmillan
[3] => Faf Duplesis
[4] => Hashim Amla
[5] => Imran Tahir
[6] => Herschelle Gibbs
[7] => Lance Clusenor
[8] => Morne Morkel
[9] => Pat Symxox
[10] => Peter Van zil
)
[Hows_Out] => Array
(
[0] => b Ian Botham
[1] => run out(Aliastar Cook)
[2] => lbw by Luke Ronchi
[3] => lbw by Ian Botham
[4] =>
[5] => lbw by Luke Ronchi
[6] => b Luke Ronchi
[7] => lbw by Luke Ronchi
[8] => lbw by Luke Ronchi
[9] => hit wicket(Luke Ronchi)
[10] => lbw by Luke Ronchi
)
[bowler] => Array
(
[0] => Ian Botham
[1] => Ian Botham
[2] => Ian Botham
[3] => Luke Ronchi
[4] => Luke Ronchi
[5] => Luke Ronchi
[6] => Luke Ronchi
[7] => Luke Ronchi
[8] => Luke Ronchi
[9] => Luke Ronchi
)
)
我的陣列是這樣的,我想這樣的想讓其子陣列PHP一個陣列的笛卡爾積
Array
(
[1] => Array
(
[Order] => Alan Donald
[Hows_out] => b Ian Botham
[bowler] => Ian Botham
)
.
.
.
)
使用foreach循環並存儲在新數組中 –