Hi Guys, Im using the accepted answer in this question. As I have the same requirements, I need to get all combinations of an array of variable length with a variable number of elements. However I also need it to produce all combinations which don't use all the elements of the array, but are in order. If that makes sense?
So if this is the array:
$array = array( array('1', '2'), array('a', 'b', 'c'), array('x', 'y'), );
I also want it to add like 1a, 1b, 1c, 2a, 2b, 2c. But not 1x or 1y, because it misses out the second element of the array.
I can't quite figure out how to change the answer to include this.
Thanks, Psy