protected function windowsVerToStr($winVer)
    {
        //https://support.microsoft.com/en-us/kb/158238

        if ($this->compareVersions($winVer, '4.90') >= 0 && $this->compareVersions($winVer, '4.91') < 0) {
            return self::PLATFORM_WINDOWS . ' Me'; //Normally range from 4.90.3000 to 4.90.3000A
        } else if ($this->compareVersions($winVer, '4.10') >= 0 && $this->compareVersions($winVer, '4.11') < 0) {
            return self::PLATFORM_WINDOWS . ' 98'; //Normally range from 4.10.1998 to 4.10.2222B
        } else if ($this->compareVersions($winVer, '4') >= 0 && $this->compareVersions($winVer, '4.04') < 0) {
            return self::PLATFORM_WINDOWS . ' 95'; //Normally range from 4.00.950 to 4.03.1214
        } else if ($this->compareVersions($winVer, '3.1') == 0 || $this->compareVersions($winVer, '3.11') == 0) {
            return self::PLATFORM_WINDOWS . ' ' . $winVer;
        } else if ($this->compareVersions($winVer, '3.10') == 0) {
            return self::PLATFORM_WINDOWS . ' 3.1';
        } else {
            return self::PLATFORM_VERSION_UNKNOWN; //Invalid Windows version
        }
    }
protected function windowsVerToStr($winVer)
    {
        //https://support.microsoft.com/en-us/kb/158238

        if ($this->compareVersions($winVer, '4.90') >= 0 && $this->compareVersions($winVer, '4.91') < 0) {
            return self::PLATFORM_WINDOWS . ' Me'; //Normally range from 4.90.3000 to 4.90.3000A
        } else if ($this->compareVersions($winVer, '4.10') >= 0 && $this->compareVersions($winVer, '4.11') < 0) {
            return self::PLATFORM_WINDOWS . ' 98'; //Normally range from 4.10.1998 to 4.10.2222B
        } else if ($this->compareVersions($winVer, '4') >= 0 && $this->compareVersions($winVer, '4.04') < 0) {
            return self::PLATFORM_WINDOWS . ' 95'; //Normally range from 4.00.950 to 4.03.1214
        } else if ($this->compareVersions($winVer, '3.1') == 0 || $this->compareVersions($winVer, '3.11') == 0) {
            return self::PLATFORM_WINDOWS . ' ' . $winVer;
        } else if ($this->compareVersions($winVer, '3.10') == 0) {
            return self::PLATFORM_WINDOWS . ' 3.1';
        } else {
            return self::PLATFORM_VERSION_UNKNOWN; //Invalid Windows version
        }
    }
protected function windowsVerToStr ( $ winVer ) { //https://support.microsoft.com/en-us/kb/158238 if ( $ this -> compareVersions ( $ winVer , '4.90' ) >= 0 && $ this -> compareVersions ( $ winVer , '4.91' ) < 0 ) { return self :: PLATFORM_WINDOWS . ' Me' ; //Normally range from 4.90.3000 to 4.90.3000A } else if ( $ this -> compareVersions ( $ winVer , '4.10' ) >= 0 && $ this -> compareVersions ( $ winVer , '4.11' ) < 0 ) { return self :: PLATFORM_WINDOWS . ' 98' ; //Normally range from 4.10.1998 to 4.10.2222B } else if ( $ this -> compareVersions ( $ winVer , '4' ) >= 0 && $ this -> compareVersions ( $ winVer , '4.04' ) < 0 ) { return self :: PLATFORM_WINDOWS . ' 95' ; //Normally range from 4.00.950 to 4.03.1214 } else if ( $ this -> compareVersions ( $ winVer , '3.1' ) == 0 || $ this -> compareVersions ( $ winVer , '3.11' ) == 0 ) { return self :: PLATFORM_WINDOWS . ' ' . $ winVer ; } else if ( $ this -> compareVersions ( $ winVer , '3.10' ) == 0 ) { return self :: PLATFORM_WINDOWS . ' 3.1' ; } else { return self :: PLATFORM_VERSION_UNKNOWN ; //Invalid Windows version } }
Convert the Windows 3.x & 9x family version numbers to the operating system name. For instance '4.10.1998'
returns 'Windows 98'.
@access protected
@param string $winVer The Windows 3.x or 9x family version numbers as a string.
@return string The operating system name or the constant PLATFORM_VERSION_UNKNOWN if nothing match the version
numbers.
Convert the Windows 3 . x & 9x family version numbers to the operating system name . For instance 4 . 10 . 1998 returns Windows 98 .