IP2Location.php
private function readCityName($pointer) {
    if (false === $pointer) {
      // Deal with invalid IPs
      $cityName = self::INVALID_IP_ADDRESS;
    } elseif (0 === self::$columns[self::CITY_NAME][$this->type]) {
      // If the field is not suported, return accordingly
      $cityName = self::FIELD_NOT_SUPPORTED;
    } else {
      // Read the city name
      $cityName = $this->readString($pointer + self::$columns[self::CITY_NAME][$this->type]);
    }
    return $cityName;
  }
private function readCityName($pointer) {
    if (false === $pointer) {
      // Deal with invalid IPs
      $cityName = self::INVALID_IP_ADDRESS;
    } elseif (0 === self::$columns[self::CITY_NAME][$this->type]) {
      // If the field is not suported, return accordingly
      $cityName = self::FIELD_NOT_SUPPORTED;
    } else {
      // Read the city name
      $cityName = $this->readString($pointer + self::$columns[self::CITY_NAME][$this->type]);
    }
    return $cityName;
  }
private function readCityName ( $ pointer ) { if ( false === $ pointer ) { // Deal with invalid IPs $ cityName = self :: INVALID_IP_ADDRESS ; } elseif ( 0 === self :: $ columns [ self :: CITY_NAME ] [ $ this -> type ] ) { // If the field is not suported, return accordingly $ cityName = self :: FIELD_NOT_SUPPORTED ; } else { // Read the city name $ cityName = $ this -> readString ( $ pointer + self :: $ columns [ self :: CITY_NAME ] [ $ this -> type ] ) ; } return $ cityName ; }
High level function to fetch the city name

@access private
@param int $pointer  Position to read from, if false, return self::INVALID_IP_ADDRESS
@return string
High level function to fetch the city name