Get any domain server ip

Function :  gethostbyname();

$ip = gethostbyname(‘www.example.in’);

echo $ip;

Advertisements