$city= ['Москва', 'Ufa', 'Belgorod'];
$num= [1, 2, 3];
$proc= ['100%', '75%', '10%'];
foreach($all as $item){
echo $item->city;
echo $item->id;
echo $item->proc;
echo '-----<br>------';
}
array(3){
[0] => {
['city'] => ['Москва']
['id']=>['1'],
['proc'] => [100%]
}
[1] => {...}
}
$arr = array_map(function($city, $id, $proc) {
return compact('city', 'id', 'proc');
}, $city, $num, $proc);