interface PublicSuffixInterface (View source)

Splits a hostname on the public suffix boundary, so that names under a multi-label suffix such as co.uk or com.pl are divided where registration actually happens rather than on the last dot.

Methods

array
split(string $domain)

No description

Details

array split(string $domain)

No description

Parameters

string $domain

Return Value

array

The registrable label and the public suffix, both empty when the name has no known suffix.