My array with countries is:
$cars = array(
[\'brand\' => \'bmw\', \'place_1\' => \'Munich\', \'place_2\' => \'Cologne\'],
[\'brand\' => \'vw\
Use your brands as array keys instead of using numeric array indexes.
Something like this
$cars = [
'bmw' => ['place_1' => 'Munich', 'place_2' => 'Cologne'],
'vw' => ['brand' => 'vw', 'place_1' => 'Berlin', 'place_2' => 'Kopenhagen'],
'hyndai' => ['brand' => 'hyndai', 'place_1' => 'Miami', 'place_2' => 'Newyork'],
];
Then you can access the variables like you want to: $cars['bmw']['place_1']
P.S : "hyndai" is probably a typo - it's spelled Hyundai