mini\Http\Message\ServerRequest::getQueryParams() Method

public

Signature

public function getQueryParams(): array

Returns

array

Documentation

Retrieve query string arguments.

Retrieves the deserialized query string arguments, if any.

If query params were overridden via withQueryParams(), returns those. Otherwise, derives query params from the request target.

Note: the query params might not be in sync with the URI or server params. If you need to ensure you are only getting the original values, you may need to parse the query string from getUri()->getQuery() or from the QUERY_STRING server param.

Source

src/Http/Message/ServerRequestTrait.php:203-217