Source Code:
(back to article)
<?php $hostname = "example.com"; $ip_address = gethostbyname($hostname); echo "The IP address for host name $hostname is $ip_address";
Result:
Report an issue