I have an array and in this array are 3 arrays with attributes, sometimes the array can have more or less..
Array
(
[0] => Array
(
[0] => XS
[1] => S
[2] => M
[3] => L
[4] => XL
)
[1] => Array
(
[0] => Black
[1] => Red
[2] => Green
)
[2] => Array
(
[0] => Fitted
[1] => Not Fitted
)
)
And would like to then echo out recursively..
XS Black Fitted
XS Black Not Fitted
XS Red Fitted
XS Red Not Fitted
XS Green Fitted
XS Green Not Fitted
S Black Fitted
S Black Not Fitted
S Red Fitted
S Red Not Fitted
S Green Fitted
S Green Not Fitted
M Black Fitted
... And so on
I do have code but nothing workable to show anything meaningful. Recursion confuses me and can't seem to produce a recursive function in a way that will produce this.. Any help would be appreciated :)