From eb002ffdf55de1e19619efc4242691e16c590794 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Sun, 10 Feb 2008 20:27:40 +0000 Subject: adding is_numeric back into validation library --- system/libraries/Validation.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'system/libraries') 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 -- cgit v1.2.3-24-g4f1b