diff --git a/system/uri.php b/system/uri.php index ab89a5a..ada08c2 100644 --- a/system/uri.php +++ b/system/uri.php @@ -1,7 +1,8 @@ * @brief URI module */ @@ -341,6 +342,13 @@ if(!check_function_exists("get_array")) { } } + +if(!check_function_exists("get_int")) { + function get_int($str) { + return intval(preg_replace('/[^0-9]/', '', $str)); + } +} + if(!check_function_exists("check_is_string_not_array")) { function check_is_string_not_array($str) { return (is_string($str) && !(is_array($str) || $str == "Array"));