|
Monday Feb 04, 2008 This function will help you to get the domain extension, simply pass the domain name and it will print the domain extension
<? function DomainExtension($domainname){ list($domain,$extention,$nextext) = explode(".",$domainname); if ($nextext) { $dext = $extention . "." . $nextext; }else{ $dext = $extention; } return $dext; }
print DomainExtension("mulpituwa.com");
?>
Author: Safras Ahamed
|