PHP Get Website Hostname

Get Website Hostname

<?
$host = gethostbyname("www.google.com"); 
echo $host;
?>