flush
[mdref/mdref-http] / http / Client / Request / getQuery.md
1 # string http\Client\Request::getQuery()
2
3 Retrieve the currently set querystring.
4
5 ## Params:
6
7 None.
8
9 ## Returns:
10
11 * string, the currently set querystring.
12 * NULL, if no querystring is set.
13
14 ## Example:
15
16 <?php
17 var_dump((new http\Client\Request)->getQuery());
18 var_dump((new http\Client\Request("GET", "http://localhost/?foo"))->getQuery());
19 ?>
20
21 Yields:
22
23 NULL
24 string(3) "foo"