src/Controller/Input.php
public function getQueryParam($param, $default = null, $filter = null, $filterOptions = null)
    {
        $params = $this->getQueryParams();
        $value = isset($params[$param]) ? $params[$param] : $default;
        
        if (isset($filter) && isset($value)) {
            $value = filter_var($value, $filter, $filterOptions);
        }
        
        return $value;
    }
public function getQueryParam($param, $default = null, $filter = null, $filterOptions = null)
    {
        $params = $this->getQueryParams();
        $value = isset($params[$param]) ? $params[$param] : $default;
        
        if (isset($filter) && isset($value)) {
            $value = filter_var($value, $filter, $filterOptions);
        }
        
        return $value;
    }
public function getQueryParam ( $ param , $ default = null , $ filter = null , $ filterOptions = null ) { $ params = $ this -> getQueryParams ( ) ; $ value = isset ( $ params [ $ param ] ) ? $ params [ $ param ] : $ default ; if ( isset ( $ filter ) && isset ( $ value ) ) { $ value = filter_var ( $ value , $ filter , $ filterOptions ) ; } return $ value ; }
Get a query parameter.

Optionally apply filtering to the value.
@link http://php.net/manual/en/filter.filters.php

@param array  $param
@param string $default
@param int    $filter
@param mixed  $filterOptions
@return mixed
Get a query parameter .