Mega Code Archive

 
Categories / Php / Code Snippets
 

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

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