HttpQueryString
PHP Manual

HttpQueryString::singleton

(PECL pecl_http >= 0.25.0)

HttpQueryString::singletonHttpQueryString singleton

说明

static public HttpQueryString HttpQueryString::singleton ([ bool $global = true ] )

Get a single instance (differentiates between the global setting).

参数

global

whether to operate on $_GET and $_SERVER['QUERY_STRING']

返回值

Returns always the same HttpQueryString instance regarding the global setting.

错误/异常

Throws HttpRuntimeException.


HttpQueryString
PHP Manual