Return to Snippet

Revision: 27715
at June 22, 2010 01:20 by winstonford


Initial Code
<?php
$tld = strrchr ( $_SERVER['SERVER_NAME'], "." );
$tld = substr ( $tld, 1 );
echo $tld;
?>

Initial URL

                                

Initial Description

                                

Initial Title
Get tld from domain

Initial Tags

                                

Initial Language
PHP