$cars = [
"Germany" => ["Audi", "BMW", "VW"],
"Russia" => ["Lada", "Gazel"]
];
foreach($cars as $country => $model) {
for($i = 0; $i < count($cars[$country]);$i++) {
echo $cars[$country][$i];
}
}
foreach ($cars as $key => $value) {
printf('%s %s<br>', $key, implode(' ', $value));
}