gethostbyname

 string gethostbyname ( string $hostname ) 

説明

Returns the IPv4 address of the Internet host specified by hostname.

戻り値

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