summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/core/Input.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/core/Input.php b/system/core/Input.php
index 81555df9a..0dcb6f425 100644
--- a/system/core/Input.php
+++ b/system/core/Input.php
@@ -168,6 +168,18 @@ class CI_Input {
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]))