<?php $ip = gethostbyname('www.example.com'); echo $ip; ?>
$ip = gethostbyname("google.com"); echo $ip; // 142.251.128.46