Firstly, I'm sure this has been answered before, but I can't seem to find it, due to other results that are similar but not quite what I need being the more popular.
Basically I have an array
$array = array('a','b','c','d','e');
I want to get a list of all possible combinations of the array values, but using all of the values exactly once. For example:
abcde acbde edcba etc..
My problem with searching for a solution is that everything shows how to do all combinations using ANY amount of the values, which is not what i want.
Can someone please point me in the right direction; a post that solves for this or how I would go about doing it?