HttpRequest
PHP Manual

HttpRequest::addQueryData

(PECL pecl_http >= 0.10.0)

HttpRequest::addQueryDataAdd query data

说明

public bool HttpRequest::addQueryData ( array $query_params )

Add parameters to the query parameter list, leaving previously set unchanged.

Affects any request type.

参数

query_params

an associative array as parameter containing the query fields to add

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE


HttpRequest
PHP Manual