gethostbyname function

gethostbyname function returns the IP address of the host specified by its name

<?php
print(gethostbyname("www.google.com"));
?>