I have an array which looks like
[1] = [1,2,3]
[2] = [1,2,3]
[3] = [1,2,3]
[4] = [1,2,3]
How can I calculate all possible combinations of numbers with condition, that only one number in array element can be selected.
Finally, I need to get smth like this: 1111 1222 1333 1122
And so on..
Thanks for the help.