Edit: A little background on this. We have a module that accepts 6 different variables. We are looking at trying to completely automate the testing and fine tuning of the possible different values that the module accepts.
I have 6 arrays and need to get the combinations of all the possibilities.
$words[1] = array("A","B","C","D","E","F");
$words[2] = array("Aa","Bb","Cc","Dd","Ee","Ff");
$words[3] = array("Aq","Bq","Cq","Dq","Eq","Fq");
$words[4] = array("Ab","Bc","Cd","De","Ef","F");
$words[5] = array("Az","Bz","Cz","Dz","Ez","Fz");
$words[6] = array("A1","B1","C1","D1","E1","F1");
So basically I am looking for every possible unique combination, while still maintaining the order of the $words array.
Examples:
C Bb Fq De Bz B1
C Bb Fq De Bz E1
C Bb Fq De Fz B1