PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi,
I have to define a routine that extract some number (i.e. 9 numbers), into a range (i.e. from 2 to 65) and makes a combination of those numbers each (i.e.) 5 of all extract.
Is there some PHP functions that build that routine ? Or some scripts that you can indicate ?
If there is anyone that help me on that routine I thank very very much !!!
Thanks for yours suggestions, but my problem is the combination of number series.
If I extract (i.e.) 30 numbers (random), I should combine all numbers and produce all available combinations of those numbers in groups of 5 numbers (i.e.) each.
For example:
Extraction: 3 56 4 55 22 33 44 78 90 43 2 .....
If I need to create groups of 5 numbers each, how many group may I create ? And which combinations ?
Example:
1th combination: 3 56 4 55 22
2nd combination: 3 56 4 55 33
3rd combination: 3 56 4 55 44
etc. etc.
To make that is there some routine already made on the net ?
Thanks for all !!!