public static function getDisplayCountries($locale)
    {
        if (!isset(self::$countries[$locale])) {
            self::$countries[$locale] = Intl::getRegionBundle()->getCountryNames($locale);
        }

        return self::$countries[$locale];
    }
public static function getDisplayCountries($locale)
    {
        if (!isset(self::$countries[$locale])) {
            self::$countries[$locale] = Intl::getRegionBundle()->getCountryNames($locale);
        }

        return self::$countries[$locale];
    }
public static function getDisplayCountries ( $ locale ) { if ( ! isset ( self :: $ countries [ $ locale ] ) ) { self :: $ countries [ $ locale ] = Intl :: getRegionBundle ( ) -> getCountryNames ( $ locale ) ; } return self :: $ countries [ $ locale ] ; }
Returns the country names for a locale.

@param string $locale The locale to use for the country names

@return array The country names with their codes as keys

@throws \RuntimeException When the resource bundles cannot be loaded
Returns the country names for a locale .