Horde_Nls::tldLookup PHP Method

tldLookup() public static method

Do a top level domain (TLD) lookup.
public static tldLookup ( string $code ) : mixed
$code string A 2-letter country code.
return mixed The localized country name, or null if not found.
    public static function tldLookup($code)
    {
        if (!isset(self::$_cache['tld'])) {
            include __DIR__ . '/Nls/Tld.php';
            self::$_cache['tld'] = $tld;
        }
        $code = Horde_String::lower($code);
        return isset(self::$_cache['tld'][$code]) ? self::$_cache['tld'][$code] : null;
    }