User Tools

Site Tools


version-library

Version library

cmp

Compare two version numbers

Returns:

  • 0 if version1 == version2
  • -1 if version1 < version2
  • 1 if version1 > version2

integer version.cmp(version1, version2)

Name Type Description
version1 string
version2 string
version-library.txt · Last modified: 2020/05/22 12:18 by maxime

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki