Get the domain name and include $tldLength segments of the tld.
public domain ( integer $tldLength = 1 ) : string |
$tldLength |
integer |
Number of segments your tld contains. For example: `example.com` contains 1 tld.
While `example.co.uk` contains 2. |
return |
string |
Domain name without subdomains. |