Răsfoiți Sursa

add check_float function

luis daniel lucio quiroz 11 ani în urmă
părinte
comite
04e076cfbe
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      resources/functions.php

+ 7 - 0
resources/functions.php

@@ -30,6 +30,13 @@
 		}
 	}
 
+	if (!function_exists('check_float')) {
+		function check_float($string) {
+			$string = str_replace(",",".",$string);
+			return trim($string);
+		}
+	}
+
 	if (!function_exists('check_str')) {
 		function check_str($string) {
 			global $db_type;