diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-02-10 21:27:40 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-02-10 21:27:40 +0100 |
commit | eb002ffdf55de1e19619efc4242691e16c590794 (patch) | |
tree | ed1fa95532be8e387c51ed2a4a6fed2f82c9845b /system/libraries | |
parent | 8ec4cfe27a4050617c116d6a22d7ccb78c7300b5 (diff) |
adding is_numeric back into validation library
Diffstat (limited to 'system/libraries')
-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
|