Skip to content
Snippets Groups Projects
Commit c8fd12cd authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Update code comment

parent b29b5fa7
Branches
Tags
No related merge requests found
......@@ -43,7 +43,10 @@ function versiontostring($versionarray)
/**
* Compare 2 versions (stored into 2 arrays).
* For example, to check if Dolibarr version is lower than (x,y,z), do "if versioncompare(versiondolibarrarray(), array(x.y.z)) <= 0"
* To check if Dolibarr version is lower than (x,y,z), do "if versioncompare(versiondolibarrarray(), array(x.y.z)) <= 0"
* For example: if (versioncompare(versiondolibarrarray(),array(4,0,-4)) >= 0) is true if version is 4.0 beta or higher.
* For example: if (versioncompare(versiondolibarrarray(),array(4,0,0)) >= 0) is true if version is 4.0 final or higher.
* For example: if (versioncompare(versiondolibarrarray(),array(4,0,1)) >= 0) is true if version is 4.0.1 or higher.
*
* @param array $versionarray1 Array of version (vermajor,verminor,patch)
* @param array $versionarray2 Array of version (vermajor,verminor,patch)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment