I am having mathematics oriented question.Here i like to get the all possible combinations
and looking to store in array.
For example:-
1 digit = 10 (0,1,2,3,....9)
2 digit = 100 (00,01,02,03,...)
I am having formula to find number of possibilities i.e 10^n -1.But i don’t know how can i get the values.
function get_combinations(5){
//10^5 -1 = 99999 values
}
the function result should be
00000,00001,00010,00100,….
in array
not like
0,1,2,….00,01,03,…99999
EDIT
I also like to mix some alphabets with the number
results like
0000a,000a1,000z1,00001,00000,….
Thanks in advance
yes, there is no integer start with
zeroso, dun bother to construct an array start with leading
zero,when you need to output
str_padcan be applied