-
Couldn't load subscription status.
- Fork 1
ServerRequest: getQueryParams Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\ServerRequest
Extends Request.
Retrieve query string arguments.
-
return
array
Example:
// https://www.example.com/?foo=bar
$queryParams = $serverRequests->getQueryParams();
print(print_r($queryParams, true));
/* Outputs:
Array
(
[foo] => bar
)
*/composer require shieldon/psr-httpShieldon PSR HTTP implementation written by Terry L. from Taiwan.
