Example #1
0
 /**
  * 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)));
 }