gethostbyname
Return the IPv4 address corresponding to the host name
gethostbyname()
function returns the IPv4 address of the given domain/hostname.
gethostbyname()
example:
<?php $ip = gethostbyname ( "www.gitbox.net" ) ; echo $ip ; ?>
gethostbyname ( hostname )
parameter | describe |
---|---|
hostname | Required. Specify the host name (such as "http://www.gitbox.net"). |