-
Notifications
You must be signed in to change notification settings - Fork 1
Uri: withQuery Example
Terry L edited this page Jun 20, 2020
·
3 revisions
Shieldon\Psr7\Uri
Return an instance with the specified query string.
-
param
string
query*
The query string to use with the new instance. -
return
static
Example:
echo $uri->getQuery();
// Outputs: p=113&foo=bar
$uri = $uri->witQuery('p=120&foo=baz');
echo $uri->getQuery();
// Outputs: p=120&foo=baz
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.