original_string: protected function _ip2long($ip, $getVersion = TRUE)
    {
     $version = $this->_isip($ip);
     if($getVersion === FALSE && $version === FALSE)return FALSE;
     if($getVersion === FALSE && $version === 'ipv4')return $this->_ip2long_v4($ip);
     if($getVersion === FALSE && $version === 'ipv6')return $this->_ip2long_v6($ip);
  
     if($getVersion === TRUE && $version === FALSE)return array('version' => FALSE, 'int' => FALSE);
     if($getVersion === TRUE && $version === 'ipv4')return array('version' => $version, 'int' => $this->_ip2long_v4($ip));
     if($getVersion === TRUE && $version === 'ipv6')return array('version' => $version, 'int' => $this->_ip2long_v6($ip));
  
      return trigger_error('inalid argument getVersion in ipFormat::ip2long()!', E_USER_ERROR);
    }
code: protected function _ip2long($ip, $getVersion = TRUE)
    {
     $version = $this->_isip($ip);
     if($getVersion === FALSE && $version === FALSE)return FALSE;
     if($getVersion === FALSE && $version === 'ipv4')return $this->_ip2long_v4($ip);
     if($getVersion === FALSE && $version === 'ipv6')return $this->_ip2long_v6($ip);
  
     if($getVersion === TRUE && $version === FALSE)return array('version' => FALSE, 'int' => FALSE);
     if($getVersion === TRUE && $version === 'ipv4')return array('version' => $version, 'int' => $this->_ip2long_v4($ip));
     if($getVersion === TRUE && $version === 'ipv6')return array('version' => $version, 'int' => $this->_ip2long_v6($ip));
  
      return trigger_error('inalid argument getVersion in ipFormat::ip2long()!', E_USER_ERROR);
    }
code_tokens: protected function _ip2long ( $ ip , $ getVersion = TRUE ) { $ version = $ this -> _isip ( $ ip ) ; if ( $ getVersion === FALSE && $ version === FALSE ) return FALSE ; if ( $ getVersion === FALSE && $ version === 'ipv4' ) return $ this -> _ip2long_v4 ( $ ip ) ; if ( $ getVersion === FALSE && $ version === 'ipv6' ) return $ this -> _ip2long_v6 ( $ ip ) ; if ( $ getVersion === TRUE && $ version === FALSE ) return array ( 'version' => FALSE , 'int' => FALSE ) ; if ( $ getVersion === TRUE && $ version === 'ipv4' ) return array ( 'version' => $ version , 'int' => $ this -> _ip2long_v4 ( $ ip ) ) ; if ( $ getVersion === TRUE && $ version === 'ipv6' ) return array ( 'version' => $ version , 'int' => $ this -> _ip2long_v6 ( $ ip ) ) ; return trigger_error ( 'inalid argument getVersion in ipFormat::ip2long()!' , E_USER_ERROR ) ; }
docstring: IP Addresses...
  - php.net
docstring_tokens: IP Addresses ... - php . net