Answer the question
In order to leave comments, you need to log in
Get all possible combinations from one element of each array. How?
Given multiple arrays:
$a = ['q', 'w'];
$c = ['z', 'x', 'u'];
$b = ['m', 'h'];
...
$z = [
[ // первая комбинация
'a' => 'q',
'b' => 'z',
'c' => 'm',
],
[ // вторая комбинация
'a' => 'w',
'b' => 'z',
'c' => 'm',
],
[ // третья комбинация
'a' => 'q',
'b' => 'x',
'c' => 'm',
],
...
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question