I have few arrays for example:
array(
'color' => array('red', 'blue', ...);
'size' => array('small', 'big', ...);
'temp' => array('hot', 'cold', ...);
...
)
Is there a function so I can get all possible iterations of these arrays ? (and more arrays and values if needed). For example result should be:
array(
0 => array('color'=> 'red', 'size'=>'small', 'temp'=>'hot')
1 => array('color'=> 'red', 'size'=>'small', 'temp'=>'cold')
2 => array('color'=> 'red', 'size'=>'big', 'temp'=>'hot')
3 => array('color'=> 'red', 'size'=>'big', 'temp'=>'cold')
)
... and so on.