How do I go about creating a recursive function that returns all combination sets of all array values from an array?
e.g.
$myArray = array(3,5,7,8);
I want all of these as output:
3,5,7,8
3,5,8,7
3,7,5,8
3,7,8,5
3,8,5,7
3,8,7,5
5,3,7,8
5,3,8,7
... etc.....
Thanks,
Vin