I’m drawing a blank on this. I think I need to eat lunch hah.
If I have an array
$words = array('red', 'blue', 'green');
I would like to list all possible combinations of words. The results should be (in no particular order)
red red blue red blue green red green blue blue green green
Note, I don’t want to list the words in various orders, (“red blue green” and “red green blue” should both not be listed). Any help with this? I can’t even think of what to search for to try and find help myself. Today is one of those days…