¡@

Home 

php Programming Glossary: nbnumeric

Generate a combination of numbers

http://stackoverflow.com/questions/10149523/generate-a-combination-of-numbers

numbers I have a PHP page with two variables nbRank and nbNumeric . Depending of these two variables I want to generate an array.. all combinations existing. For example If nbRank 3 and nbNumeric 2 I would have 0 0 0 0 0 1 0 0 2 0 1 0 0 1 1 0 1 2 0 2 0 0 2.. I did result array nbIntRank 0 nbIntNumeric 0 nbRank array nbNumeric array nb_rangs 3 nb_chiffres 2 for i 1 i nb_rangs i nbRank i..