/** * Returns the hostname given the IP address string * * @param string $ip IP Address * @return string hostname (or human-readable IP address) */ private function getHost($ip) { return trim(strtolower(@IP::getHostByAddr($ip))); }