this question is a little bit similar to my old one here.
But now I've got only one dynamically filled array
Array (
[8] => 3-Blue
[9] => 3-Red
[10] => 4-L
[11] => 4-XL
...
...
)
for each number in front of the value, I need a new array. So for this example I need these two
Array (
[8] => Blue
[9] => Red
)
Array (
[10] => L
[11] => XL
)
The key should stay the same. If this is not possible, than the keys should be in the value L - 10
than I need to combine those arrays, and get the possible combinations without duplicates in a new array like this.
Array (
[0] => Blue | L - 8,10
[1] => Blue | XL - 8,11
[2] => Red | L - 9,10
[3] => Red | XL - 9,11
)
after each value, there must be the keys form the arrays before.
is this even possible?! and if yes, how?