advanced code snippet search
winstonford on 06/22/10
3 people have marked this snippet as a favorite
<?php$tld = strrchr ( $_SERVER['SERVER_NAME'], "." );$tld = substr ( $tld, 1 );echo $tld;?>
Report this snippet
But what if it's a subdomain?
You need to login to post a comment.