gethostbyname

PHP 4, PHP 5, PHP 7, PHP 8
gethostbyname - Get the IPv4 address corresponding to a given Internet host name
Manual
Code Examples

Example #1 A simple gethostbyname example

PHP Version: