IP2Location.php
private function readMccMncAndMobileCarrierName($pointer) {
    if (false === $pointer) {
      // Deal with invalid IPs
      $mcc               = self::INVALID_IP_ADDRESS;
      $mnc               = self::INVALID_IP_ADDRESS;
      $mobileCarrierName = self::INVALID_IP_ADDRESS;
    } elseif (0 === self::$columns[self::MCC][$this->type]) {
      // If the field is not suported, return accordingly
      $mcc               = self::FIELD_NOT_SUPPORTED;
      $mnc               = self::FIELD_NOT_SUPPORTED;
      $mobileCarrierName = self::FIELD_NOT_SUPPORTED;
    } else {
      // Read MCC, MNC, and mobile carrier name
      $mcc               = $this->readString($pointer + self::$columns[self::MCC][$this->type]);
      $mnc               = $this->readString($pointer + self::$columns[self::MNC][$this->type]);
      $mobileCarrierName = $this->readString($pointer + self::$columns[self::MOBILE_CARRIER_NAME][$this->type]);
    }
    return [$mcc, $mnc, $mobileCarrierName];
  }
private function readMccMncAndMobileCarrierName($pointer) {
    if (false === $pointer) {
      // Deal with invalid IPs
      $mcc               = self::INVALID_IP_ADDRESS;
      $mnc               = self::INVALID_IP_ADDRESS;
      $mobileCarrierName = self::INVALID_IP_ADDRESS;
    } elseif (0 === self::$columns[self::MCC][$this->type]) {
      // If the field is not suported, return accordingly
      $mcc               = self::FIELD_NOT_SUPPORTED;
      $mnc               = self::FIELD_NOT_SUPPORTED;
      $mobileCarrierName = self::FIELD_NOT_SUPPORTED;
    } else {
      // Read MCC, MNC, and mobile carrier name
      $mcc               = $this->readString($pointer + self::$columns[self::MCC][$this->type]);
      $mnc               = $this->readString($pointer + self::$columns[self::MNC][$this->type]);
      $mobileCarrierName = $this->readString($pointer + self::$columns[self::MOBILE_CARRIER_NAME][$this->type]);
    }
    return [$mcc, $mnc, $mobileCarrierName];
  }
private function readMccMncAndMobileCarrierName ( $ pointer ) { if ( false === $ pointer ) { // Deal with invalid IPs $ mcc = self :: INVALID_IP_ADDRESS ; $ mnc = self :: INVALID_IP_ADDRESS ; $ mobileCarrierName = self :: INVALID_IP_ADDRESS ; } elseif ( 0 === self :: $ columns [ self :: MCC ] [ $ this -> type ] ) { // If the field is not suported, return accordingly $ mcc = self :: FIELD_NOT_SUPPORTED ; $ mnc = self :: FIELD_NOT_SUPPORTED ; $ mobileCarrierName = self :: FIELD_NOT_SUPPORTED ; } else { // Read MCC, MNC, and mobile carrier name $ mcc = $ this -> readString ( $ pointer + self :: $ columns [ self :: MCC ] [ $ this -> type ] ) ; $ mnc = $ this -> readString ( $ pointer + self :: $ columns [ self :: MNC ] [ $ this -> type ] ) ; $ mobileCarrierName = $ this -> readString ( $ pointer + self :: $ columns [ self :: MOBILE_CARRIER_NAME ] [ $ this -> type ] ) ; } return [ $ mcc , $ mnc , $ mobileCarrierName ] ; }
High level function to fetch the MCC, MNC, and mobile carrier name

@access private
@param int $pointer  Position to read from, if false, return self::INVALID_IP_ADDRESS
@return array
High level function to fetch the MCC MNC and mobile carrier name