numeric version function

This commit is contained in:
luis daniel lucio quiroz 2015-04-14 23:58:03 +00:00
parent 600e3db6c2
commit 18ca473bc2
1 changed files with 8 additions and 0 deletions

View File

@ -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);