Method System.gethostbyname()
- Method
gethostbyname
array(string|array(string)) gethostbyname(stringhostname)- Description
Returns an array with information about the specified host.
- Returns
The returned array contains the following:
Array stringhostnameName of the host.
array(string)ipsArray of IP numbers for the host.
array(string)aliasesArray of alternative names for the host.
- Note
This function only exists on systems that have the gethostbyname(2) or similar system call.
- See also