프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$dnsResolver | Net_DNS2_Resolver | DNS resolver. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_cache | array | Cached values. |
메소드 | 설명 | |
---|---|---|
checkCharset ( string $charset ) : boolean | Check to see if character set is valid for htmlspecialchars() calls. | |
getCountryByHost ( string $host, string $datafile = null ) : mixed | Get country information from a hostname or IP address. | |
getCountryISO ( string $code = null ) : mixed | Returns either a specific or all ISO-3166 country names. | |
getLangInfo ( const $item ) : array | Get the language info returned by nl_langinfo(), but cache it, to avoid repeated calls. | |
getLanguageISO ( string $code = null ) : mixed | Returns either a specific or all ISO-639 language names. | |
getLocaleInfo ( ) : array | Get the locale info returned by localeconv(), but cache it, to avoid repeated calls. | |
getTimezones ( ) : array | Returns a list of available timezones. | |
getTimezonesWithAbbreviations ( ) : array | Returns a list of available timezones, including timezone abbreviations. | |
tldLookup ( string $code ) : mixed | Do a top level domain (TLD) lookup. |
public static checkCharset ( string $charset ) : boolean | ||
$charset | string | The character set to check. |
리턴 | boolean | Is charset valid for the current system? |
public static getCountryByHost ( string $host, string $datafile = null ) : mixed | ||
$host | string | The hostname or IP address. |
$datafile | string | The datafile for the GeoIP lookup. If not set, will skip this lookup. |
리턴 | mixed | On success, return an array with the following entries: 'code' => Country Code 'name' => Country Name On failure, return false. |
public static getCountryISO ( string $code = null ) : mixed | ||
$code | string | The ISO 3166 country code. |
리턴 | mixed | If a country code has been requested will return the corresponding country name. If empty will return an array of all the country codes and their names. |
public static getLangInfo ( const $item ) : array | ||
$item | const | The langinfo item to return. |
리턴 | array | The results of nl_langinfo(). |
public static getLanguageISO ( string $code = null ) : mixed | ||
$code | string | The ISO 639 language code. |
리턴 | mixed | If a language code has been requested will return the corresponding language name. If empty will return an array of all the language codes (keys) and their names (values). |
public static getLocaleInfo ( ) : array | ||
리턴 | array | The results of localeconv(). |
public static getTimezones ( ) : array | ||
리턴 | array | List of timezones. |
public static getTimezonesWithAbbreviations ( ) : array | ||
리턴 | array | List of timezones. |