Name

gethostbyname

Synopsis

$hostinfo = gethostbyname($host) 

Returns an array of information about the given host. The first element of the array is the name of the host and the second is the IP number.

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.