There is a set of ordered numbers , say $nums = array(3, 7, 10, 12, 20, 24, 26, 34, 37);
I want to get all the possible combinations of 6 numbers from the above array , and the order is from the lowest number to the greatest number; for example :
3, 7, 10, 12, 20, 24
3, 7, 10, 12, 20, 26
3, 7, 10, 12, 20, 34
3, 7, 10, 12, 20, 37
3, 7, 10, 12, 24, 26
3, 7, 10, 12, 24, 34
3, 7, 10, 12, 24, 37
3, 7, 10, 12, 26, 34
3, 7, 10, 12, 26, 37
3, 7, 10, 12, 34, 37
3, 7, 10, 20, 24, 26
3, 7, 10, 20, 24, 34
3, 7, 10, 20, 24, 37
3, 7, 10, 20, 26, 34
3, 7, 10, 20, 26, 37
3, 7, 10, 20, 34, 37
etc...