update : 2015.11.03
php.shukuma.com

검색:
 
 
Set cookies

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를 반환합니다.