PHP nested array combinations / permutations
问题 I thought my problem had been solved using this solution, using the answer by VolkerK, but it doesn't seem to be working correctly. What I want is a function that returns all possible combinations of values contained in nested arrays. For example, if I pass in [ ['a', 'b'], ['a', 'b'], ['a', 'b'], ['a'], ['a'], ['a'] ] It would return a, a, a, a, a, a b, b, b, a, a, a a, a, b, a, a, a a, b, a, a, a, a b, a, a, a, a, a a, b, b, a, a, a b, b, a, a, a, a b, a, b, a, a, a The problem with using