At times Php developers need to parse domain information from a given url , Usually a $_SERVER['REQUEST_URI'] , The php function www.php.net/parse_url is used to extract domain name, Variables from a url string, The list of information extracted (Return values) from parse url are:- scheme – e.g. http, https, etc. host:- the domain name( www.google.com) [...]