class TopLevelDomain (View source)

Class for validating and working with Top Level Domains

Constants

private DATA_FILE

Methods

static void
init()

No description

static bool
isValidTopLevelDomain($hostname)

No description

static void
resetCache()

Reset the cache (useful for testing)

Details

static void init()

No description

Return Value

void

static bool isValidTopLevelDomain($hostname)

No description

Parameters

$hostname

Return Value

bool

static void resetCache()

Reset the cache (useful for testing)

Return Value

void