public function getPostGet($index = null,
$filter = null,
$flags = null
) { if ($index === null
) { return array_merge($this->
getGet($index,
$filter,
$flags),
$this->
getPost($index,
$filter,
$flags));
} // Use $_POST directly here, since filter_has_var only
// checks the initial POST data, not anything that might
// have been added since.
return isset($_POST[$index]) ?
$this->
getPost($index,
$filter,
$flags) :
(isset($_GET[$index]) ?
$this->
getGet($index,
$filter,
$flags) :
$this->
getPost($index,
$filter,
$flags));
} /**
* Fetch an item from GET data with fallback to POST.
*
* @param array|string|null $index Index for item to be fetched from $_GET or $_POST
* @param int|null $filter A filter name to apply
* @param array|int|null $flags
*
* @return array|bool|float|int|object|string|null
*/