private function _getVersionByDepth($sVersion, $iDepth = 2) { if (!$iDepth) { return $sVersion; } $_aParts = explode('.', $sVersion); $_aParts = array_slice($_aParts, 0, $iDepth); return implode('.', $_aParts); }