getProviderNames() public static method

Returns list of provider names
public static getProviderNames ( ) : array
return array Array of ( dnsName => providerName )
示例#1
0
/**
 * Return a pretty provider name for a given domain name
 *
 * @param string $in hostname
 * @return string Real ISP name, IP (if IP address didn't resolve), or Unknown
 */
function getPrettyProviderName($in)
{
    $providerName = getHostnameName($in);
    $prettyNames = Common::getProviderNames();
    if (is_array($prettyNames) && array_key_exists(strtolower($providerName), $prettyNames)) {
        $providerName = $prettyNames[strtolower($providerName)];
    }
    return $providerName;
}