[PHP-WIN] Re: How to get all combinations

2002-05-19 Thread Hugh Bothwell
"Steen Rabol" <[EMAIL PROTECTED]> wrote in message 000501c1fe7d$e8c7f470$[EMAIL PROTECTED]">news:000501c1fe7d$e8c7f470$[EMAIL PROTECTED]... > Hi > > I have 6 arrays with data and would like to have all possible > combinations > Eg. > > $a1 = array(1,2); > $a2 = array(3,4); > $a3 = array(5,6); > $

[PHP-WIN] Re: How to get all combinations

2002-05-19 Thread Tomator
> I have 6 arrays with data and would like to have all possible > combinations > Eg. > > $a1 = array(1,2); > $a2 = array(3,4); > $a3 = array(5,6); > $a4 = array(7,8); > $a5 = array(9,10); > $a6 = array(11,12); > > the result should then be a new array like this: > > [0] = 1,3,5,7,9,11 > [1] = 1,4,