downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

HttpRequest::setHeaders> <HttpRequest::setContentType
[edit] Last updated: Fri, 24 May 2013

view this page in

HttpRequest::setCookies

(PECL pecl_http >= 0.12.0)

HttpRequest::setCookiesSet cookies

说明

public bool HttpRequest::setCookies ([ array $cookies ] )

Set custom cookies.

参数

cookies

an associative array as parameter containing cookie name/value pairs; if empty or omitted, all previously set cookies will be unset

返回值

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



add a note add a note User Contributed Notes HttpRequest::setCookies - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites