protected function isVersionIsGreaterOrEqual($version, $other) {
    $max = min(count($version), count($other));
    for ($i = 0; $i < $max; $i++) {
      if ($version[$i] < $other[$i]) {
        return false;
      }
    }
    return true;
  }
protected function isVersionIsGreaterOrEqual($version, $other) {
    $max = min(count($version), count($other));
    for ($i = 0; $i < $max; $i++) {
      if ($version[$i] < $other[$i]) {
        return false;
      }
    }
    return true;
  }
protected function isVersionIsGreaterOrEqual ( $ version , $ other ) { $ max = min ( count ( $ version ) , count ( $ other ) ) ; for ( $ i = 0 ; $ i < $ max ; $ i ++ ) { if ( $ version [ $ i ] < $ other [ $ i ] ) { return false ; } } return true ; }
Compare two versions

@param array $version Version array
@param array $other Version array
@return boolean True if first version is greater or equal to other version
Compare two versions