<?php $domain = "example.com"; $ip = gethostbyname($domain); echo "The IP address of $domain is: $ip"; ?>