I have the following array
Array
(
['colour'] => Array
(
[0] => 1130
[1] => 1131
[2] => 1132
[3] => 1133
)
['size'] => Array
(
[0] => 1069
[1] => 1070
)
//there could also be further arrays here such as weight etc
)
I want to get all the possible permutations - such as
Colour 1130 - Size 1069
Colour 1130 - Size 1070
Colour 1131 - Size 1069
Colour 1131 - Size 1070
Colour 1132 - Size 1069
etc
But obviously don't want to have permutations that contain more than 1 of each type (an item cannot be both blue and red or both large and medium)
note, that the keys are all numeric, I changed them here to colour, size to make it clearer (hopefully!)