hello! has anyone ever come a cross this problem? I need to output all the possible combinations of elements in an array.
For example, say I need to output all the different combinations for the array
array('1', '2', '3')
The output would be:
123
132
213
231
312
321
Of course, the number of elements in the array can be N in size - undertermined.
Any help will be greatly appreciated!!