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

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