How To Get Domain Name Tld [top Leve Domain] From Url
- Forums
- PHP
- How To Get Domain Name Tld [top Leve Domain] From Url
This Page Contains information about How To Get Domain Name Tld [top Leve Domain] From Url By steven in category PHP with 2 Replies. [1250], Last Updated: Sat May 18, 2024
steven
Tue Feb 03, 2009
2 Comments
489 Visits
is there a way i can get the domain name only from a url.
for example if i have this string
$string = 'http://www.wallpaperama.com';
i only want to get the domain name from this string so it will become this:
$string = 'wallpaperama.com';
how can i do that?
https://www.wallpaperama.com/forums/how-to-get-domain-name-tld-from-url-t7050.html