Source Code:
(back to article)
<?php $hostname = "example.com"; $ip_addresses = gethostbynamel($hostname); foreach ($ip_addresses as $ip_address) { echo "IP address for host name $hostname is $ip_address"; }
Result:
Report an issue