protected function getPost($strKey) { $strMethod = $this->allowHtml ? 'postHtml' : 'post'; if ($this->preserveTags) { $strMethod = 'postRaw'; } // Support arrays (thanks to Andreas Schempp) $arrParts = explode('[', str_replace(']', '', $strKey)); $varValue = \Input::$strMethod(array_shift($arrParts), $this->decodeEntities); foreach ($arrParts as $part) { if (!is_array($varValue)) { break; } $varValue = $varValue[$part]; } return $varValue; }