get_domain
get_domain($url="",$level=-1); - get the domain of the specified level for the specified address
The function accepts parameters as input:
$url – url to get the domain for (if not specified, the current url is used)$level – which level domain should be obtained from the url
After testing, the function returns the result of its work to the script :
Domain – domain of the specified level