I am working on a feature where I need to generate combination from multiple array items, for example:
array_one('Size:S', 'Size:M');
array_two('Color:Red', 'Color:Yellow');
array_three('Brand:Hugo','Brand:Boss');
And expected combination should be like below:
Combination_one: Size:S,Color:Red,Brand:Hugo
Combination_two: Size:S,Color:Red,Brand:Boss
Combination_three: Size:S,Color:Yellow,Brand:Hugo
Combination_four: Size:S,Color:Yellow,Brand:Boss
Combination_five: Size:M,Color:Red,Brand:Hugo
Combination_six: Size:M,Color:Red,Brand:Boss
Combination_seven: Size:M,Color:Yellow,Brand:Hugo
Combination_eight: Size:M,Color:Yellow,Brand:Boss
How can I do that using PHP?