Combine items of an array with all the items of another array
Posted: 02 Jan 2015, 15:03
Hello,
I have two array one is 1 to 8 number of cards and four colors of cards.
And i want all the two combination of number to color, the output is like following:
Thanks in advance.
I have two array one is 1 to 8 number of cards and four colors of cards.
Code: Select all
$no = array(1, 2, 3, 4, 5, 6, 7, 8);
$color = array('K','L','F','C');
Code: Select all
Array(
1-K
2-K
3-K
...
1-F
2-F
3-F
...
)