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 и хранить в новом массиве –