I have a sequence of numbers interspersed with underscore:
_10_1_18_4_9_14_ _
I would like to replace the underscore with letters without touching the numbers, and generate the complete list of combinations, but I don't know how to do it.
Right now I have this:
$alph = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");
echo $alph[0]."10".$alph[0]."1".$alph[0]."18".$alph[0]."4".$alph[0]."9".$alph[0]."14".$alph[0] .$alph[0];
Now, I don't know how to explore all the possible combinations.
There are 208 827 064 576 possible combinations and I have to put them all in a .txt file. That's why I avoid using "for"
Any ideas?
edit: For the example we can block the number of combinations to 100 for example with a $i ++ in the loop.
I know it's going to take a lot of time and space