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

There are no user contributed notes for this page.
To Top