- Impact
- 3,028
Please write a short php function to parse a URL and return just the domain name.
Example:
Offering a new domain registration.
Example:
Code:
$url="http://www.namepros.com/showthread.php?p=350493";
$domain = getdomain($url); # domain equals "namepros.com"
Offering a new domain registration.