src/ministruts/Request.php
public function getQueryString() {
        // The variable $_SERVER['QUERY_STRING'] is set by the server and can differ from the transmitted query string.
        // It might hold additional parameters added by the server or it might be empty (e.g. on a mis-configured nginx).

        if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING'])) {
            $query = $_SERVER['QUERY_STRING'];
        }
        else {
            $query = strRightFrom($_SERVER['REQUEST_URI'], '?');
        }
        return $query;
    }
public function getQueryString() {
        // The variable $_SERVER['QUERY_STRING'] is set by the server and can differ from the transmitted query string.
        // It might hold additional parameters added by the server or it might be empty (e.g. on a mis-configured nginx).

        if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING'])) {
            $query = $_SERVER['QUERY_STRING'];
        }
        else {
            $query = strRightFrom($_SERVER['REQUEST_URI'], '?');
        }
        return $query;
    }
public function getQueryString ( ) { // The variable $_SERVER['QUERY_STRING'] is set by the server and can differ from the transmitted query string. // It might hold additional parameters added by the server or it might be empty (e.g. on a mis-configured nginx). if ( isset ( $ _SERVER [ 'QUERY_STRING' ] ) && strlen ( $ _SERVER [ 'QUERY_STRING' ] ) ) { $ query = $ _SERVER [ 'QUERY_STRING' ] ; } else { $ query = strRightFrom ( $ _SERVER [ 'REQUEST_URI' ] , '?' ) ; } return $ query ; }
Return the query string of the request's URL.

@return string

@example
<pre>
$request->getUrl():          "http://a.domain.tld/path/application/module/foo/bar.html?key=value"
$request->getQueryString():  "key=value"
</pre>
Return the query string of the request s URL .