This PHP function will take a multi dimensional array and create all its possible combinations (not permutations). I used this function in debug code, but I can see its use in many other cases.
I used this function in debug code, to test possible uses of an unknown API quickly, but I can see the use of this function in other cases, such as:
- Debug code, unit testing
- A/B/n split testing engines
- Text spinning engines
Have a look at the output to see if this is indeed what you are looking for.

This PHP operate will take a multiple perspective range and make all its possible blends.This operate in debug value, but its use in many other situations.
Thanks for this, I spent yonks tearing what’s left of my hair out trying to do the same thing with indexes and failing – before I cheated and googled and eventually found your very nice solution.
Used it to generate initial stock data for products with multiple options.