diff options
author | admin <devnull@localhost> | 2006-09-25 23:06:46 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-09-25 23:06:46 +0200 |
commit | 83b05a860a5f208d15942b517385848cfe4887bb (patch) | |
tree | da87851bb10fd9bdf913fb8bca9d726fb0083423 /system/libraries/Validation.php | |
parent | 6cec6a58d993fb0b1beb5fac7ea0d1cb9769c0a4 (diff) |
Diffstat (limited to 'system/libraries/Validation.php')
-rw-r--r-- | system/libraries/Validation.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/system/libraries/Validation.php b/system/libraries/Validation.php index 153657e31..b65b9be52 100644 --- a/system/libraries/Validation.php +++ b/system/libraries/Validation.php @@ -519,13 +519,27 @@ class CI_Validation { * Numeric * * @access public - * @param string + * @param int * @return bool */ function numeric($str) { return ( ! ereg("^[0-9\.]+$", $str)) ? FALSE : TRUE; } + + // -------------------------------------------------------------------- + + /** + * Is Numeric + * + * @access public + * @param string + * @return bool + */ + function is_numeric($str) + { + return ( ! is_numeric($str)) ? FALSE : TRUE; + } // -------------------------------------------------------------------- |