Allow pulling multiple get/post ...etc at once
diff --git a/system/core/Input.php b/system/core/Input.php
index 81555df..0dcb6f4 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -168,6 +168,18 @@
return $output;
}
+ // allow fetching multiple keys at once
+ if (is_array($index))
+ {
+ $output = array();
+ foreach($index as $var)
+ {
+ $output[$var] = $this->_fetch_from_array($array, $var, $xss_clean);
+ }
+
+ return $output;
+ }
+
is_bool($xss_clean) OR $xss_clean = $this->_enable_xss;
if (isset($array[$index]))