I need help, example, i got array with 4 for team names there.
array('logiX.L4d22','Lust','Marat and Friends','Pandas of Belgium');
I want to make 3 dimensional array where first is a round, second is a match, and the third is teams who plays with eachother, there will be always 2 teams.
the logic must make that all teams must be played with all others and in one round, any team will play only one match, so if we got 5 teams then in some round one team must just wait to the next round.
it must produce something like this:
array 0 => array 0 => array 0 => string 'logiX.L4D2' (length=10) 1 => string 'Lust' (length=4) 1 => array 0 => string 'Marat and Friends' (length=17) 1 => string 'Pandas of Belgium' (length=17) 1 => array 0 => array 0 => string 'logiX.L4D2' (length=10) 1 => string 'Marat and Friends' (length=17) 1 => array 0 => string 'Lust' (length=4) 1 => string 'Pandas of Belgium' (length=17) 2 => array 0 => array 0 => string 'logiX.L4D2' (length=10) 1 => string 'Pandas of Belgium' (length=17) 1 => array 0 => string 'Lust' (length=4) 1 => string 'Marat and Friends' (length=17)
It must be work with 2,3,5 ...10 ...12 teams.
I hope that you can help me out, i already spent 1 and half days for that.