summaryrefslogtreecommitdiffstats
path: root/system/libraries/Validation.php
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-25 23:06:46 +0200
committeradmin <devnull@localhost>2006-09-25 23:06:46 +0200
commit83b05a860a5f208d15942b517385848cfe4887bb (patch)
treeda87851bb10fd9bdf913fb8bca9d726fb0083423 /system/libraries/Validation.php
parent6cec6a58d993fb0b1beb5fac7ea0d1cb9769c0a4 (diff)
Diffstat (limited to 'system/libraries/Validation.php')
-rw-r--r--system/libraries/Validation.php16
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;
+ }
// --------------------------------------------------------------------