I have n arrays (for example 2 arrays):
$tab['1'] = array('1', '2', '3');
$tab['2'] = array('A', 'B', 'C');
How can i get this result?
1 A
1 B
1 C
2 A
2 B
2 C
3 A
3 B
3 C
That is, each element from first array with each element from other arrays.
You would do a 2-dimensional iteration.
Run through the first array like this
For each number in the first array, the code in the brackets will be executed. If you want to count each letter for each number, just repeat the same iteration inside: