Php Get Domain Name Only From Tld
- Forums
- PHP
- Php Get Domain Name Only From Tld
This Page Contains information about Php Get Domain Name Only From Tld By wallpaperama in category PHP with 8 Replies. [1118], Last Updated: Sat May 18, 2024
wallpaperama
Mon Mar 03, 2008
8 Comments
7127 Visits
im looking for a php script or class in php so that i can split my domain name.
for example, i have this:
$string = www.wallpaperama.com
and i only want
$string = wallpaperama
but i want the script to take into considration other tld like
$string = mail.www.wallpaperama.co.uk
how can i do this?