What is the most efficient way to generate all the combinations, dispositions and permutations of an array in PHP?
+1
A:
Here is code to get all permutations:
http://www.php.net/manual/en/function.shuffle.php#90615
With the code to get the power set, permutations are those of maximal length, the power set should be all combinations. I have no idea what dispositions are, so if you can explain them, that would help.
Victor Liu
2009-11-05 10:56:31
good research VL
memnoch_proxy
2009-11-09 02:52:14