summaryrefslogtreecommitdiffstats
path: root/system/libraries/Validation.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-02-10 21:27:40 +0100
committerDerek Allard <derek.allard@ellislab.com>2008-02-10 21:27:40 +0100
commiteb002ffdf55de1e19619efc4242691e16c590794 (patch)
treeed1fa95532be8e387c51ed2a4a6fed2f82c9845b /system/libraries/Validation.php
parent8ec4cfe27a4050617c116d6a22d7ccb78c7300b5 (diff)
adding is_numeric back into validation library
Diffstat (limited to 'system/libraries/Validation.php')
-rw-r--r--system/libraries/Validation.php14
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