Menu Riverview Church

GETHOSTBYNAME

Get the IPv4 address corresponding to a given Internet host name

SYNTAX

gethostbyname ( string $hostname ) : string

PARAMETERS

hostname

The host name.

RETURN

Returns the IPv4 address or a string containing the unmodified hostname on failure.

EXAMPLES

185.85.0.29

PHP