src/Psr/ServerRequest.php
public function getQueryParam(string $key, $default = null)
    {
        $getParams = $this->getQueryParams();
        $result = $default;
        if (isset($getParams[$key])) {
            $result = $getParams[$key];
        }

        return $result;
    }
public function getQueryParam(string $key, $default = null)
    {
        $getParams = $this->getQueryParams();
        $result = $default;
        if (isset($getParams[$key])) {
            $result = $getParams[$key];
        }

        return $result;
    }
public function getQueryParam ( string $ key , $ default = null ) { $ getParams = $ this -> getQueryParams ( ) ; $ result = $ default ; if ( isset ( $ getParams [ $ key ] ) ) { $ result = $ getParams [ $ key ] ; } return $ result ; }
Fetch parameter value from query string.

Note: This method is not part of the PSR-7 standard.

@param string $key
@param mixed  $default

@return mixed
Fetch parameter value from query string .