I have a problem listed below:
I handle 3 arrays from client side. They always have random length, but by their length they are equal to each other. Then I use $summary_array to gather all data and iterate through.
Example:
$country = (1,2,3);
$city = (4,5,6);
$sightseen = (7,8,9);
$summary_array = ($country, $city, $sightseen);
OR
$country = (1,2,3,4);
$city = (1,3,4,5);
$sightseen = (5,2,9,4);
$summary_array = ($country, $city, $sightseen);
And now I need to iterate through these arrays:
foreach($summary_array as $value) {
//...
}
And I need to get in the output:
1 : 1 2 3
2 : 4 5 6
3 : 7 8 9
OR
1 : 1 2 3 4
2 : 1 3 4 5
3 : 5 2 9 4
How I can do that?