Gen. partnerAlgotech

PHP function gethostbyname()

Get the IPv4 address corresponding to a given Internet host name

|
September 11, 2019

Availability in PHP 4.0

Get the IPv4 address corresponding to a given Internet host name

Parameters

Parameter Data type Default value Note
$hostname string not The host name.

Return values

string

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

Additional resources

Official gethostbyname documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.