Langages et normes: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 418: Line 418:


Il également possible de faire appel à la fonction version_compare de php, ce qui donne ici :  
Il également possible de faire appel à la fonction version_compare de php, ce qui donne ici :  
<syntaxhighlight lang="PHP">
if ((float) DOL_VERSION >= 5.0) { //mycode for 5.0 only; } // For dolibarr 5.0.*
</syntaxhighlight>
<syntaxhighlight lang="PHP">
if ((float) DOL_VERSION >= 5.0) { //mycode for 5.0 only; } // For dolibarr 5.0.*
</syntaxhighlight>
<syntaxhighlight lang="PHP">
if ((float) DOL_VERSION >= 5.0) { //mycode for 5.0 only; } // For dolibarr 5.0.*
</syntaxhighlight>
<syntaxhighlight lang="PHP">
if ((float) DOL_VERSION >= 5.0) { //mycode for 5.0 only; } // For dolibarr 5.0.*
</syntaxhighlight>


<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
46

edits