Browse Source

add check_float function

luis daniel lucio quiroz 11 năm trước cách đây
mục cha
commit
04e076cfbe
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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;