diff options
-rw-r--r-- | system/libraries/Validation.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php index c81ad6b88..d0714d040 100644 --- a/system/libraries/Validation.php +++ b/system/libraries/Validation.php @@ -557,6 +557,20 @@ class CI_Validation { }
// --------------------------------------------------------------------
+
+ /**
+ * Is Numeric
+ *
+ * @access public
+ * @param string
+ * @return bool
+ */
+ function is_numeric($str)
+ {
+ return ( ! is_numeric($str)) ? FALSE : TRUE;
+ }
+
+ // --------------------------------------------------------------------
/**
* Integer
|