numeric version function
This commit is contained in:
parent
600e3db6c2
commit
18ca473bc2
|
|
@ -37,6 +37,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (!function_exists('numeric_version')) {
|
||||
function numeric_version() {
|
||||
$v = explode('.', software_version());
|
||||
$n = ($v[0] * 10000 + $v[1] * 100 + $v[2]);
|
||||
return $n;
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('check_float')) {
|
||||
function check_float($string) {
|
||||
$string = str_replace(",",".",$string);
|
||||
|
|
|
|||
Loading…
Reference in New Issue