final class TopLevelDomain (View source)

Top-level domain validation against the bundled TLD list.

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