i have to generate all combinations of elements by unique value and in an orderly manner. I explain with an example, these are the parameters and their values :
Dog : mal | female
Color : red | blue | yellow
the all combinations (ordered) to get are :
male - red
male - blue
male - yellow
female - red
female - blue
female - yellow
How can i do it in php using arrays ?
Thanks in advance