|
|
Posted by sberry on 02/22/66 12:00
I have three arrays... for instance
$a = array('big', 'small', 'medium');
$b = array('old', 'new');
$c = array('blue', 'green');
I want to take those and end up with all of the combinations they
create like the following
'big', 'old', 'blue'
'small', 'old', 'blue'
'medium', 'old', 'blue'
'big', 'old', 'green'
'small', 'old', 'green'
'medium', 'small', 'green'
'big', 'new', 'blue'
'small', 'new', 'blue'
'medium', 'new', 'blue'
'big', 'new', 'green'
'small', 'new', 'green'
'medium', 'new', 'green'
Is there an easy way to do this mapping?
[Back to original message]
|