This should become:
```php
foreach ( $countries as $shortname => $name ) {
    ....
}
```