*/
define('PARAM_INTEGER', 0x0002);
+/**
+ * PARAM_NUMBER - a real/floating point number.
+ */
+define('PARAM_NUMBER', 0x000a);
+
/**
* PARAM_ALPHA - contains only english letters.
*/
case PARAM_INT:
return (int)$param; // Convert to integer
+ case PARAM_NUMBER:
+ return (float)$param; // Convert to integer
+
case PARAM_ALPHA: // Remove everything not a-z
return eregi_replace('[^a-zA-Z]', '', $param);