I have an amount of character pairs (ex. Rr,Ss,Tt). It doesn't matter what they exactly are, each could be in a array ($char[1][1]="R";$char[1][2]="r"...)
What I want to get is all different combinations of one letter in each pair with each character from the other pairs.
Example:
1) Rr,SS would return RS, RS, rS, rS
2) Rr,Ss,TT would return
RST
RSt
Rst
Rst
rST
rSt
rst
rst
Remember there could be any amount of pairs.
Thanks a lot.