I have the following multi-dimensional array (this is only an extract) and would like to dynamically create a set of one-dimensional arrays and add values.
What I have:
0 =>
0 => Image
1 => DE
2 => Hamburg-S02-I01
3 => 54
4 => Button
1 =>
0 => Image
1 => GB
2 => London-S01-I01
3 => 51
4 => Button
2 =>
0 => Image
1 => GB
2 => London-S01-I04
3 => 60
4 => Button
3 =>
0 => Image
1 => DE
2 => Berlin-S02-I01
3 => 57
4 => Button
4 =>
0 => Image
1 => DE
2 => Hamburg-S02-I01
3 => 52
4 => Button
What I need:
$Hamburg = array('Hamburg-S02-I01', 'Hamburg-S02-I01');
$London= array('London-S01-I01', 'London-S01-I04');
$Berlin= array('Berlin-S02-I01');
I appreciate your help! Thanks!