1 # void http\Cookie::__construct([mixed $cookies = NULL[, int $flags = 0[, array $allowed_extras = NULL]]])
3 Create a new cookie list.
7 * Optional mixed $cookies = NULL
8 The string or list of cookies to parse or set.
9 * Optional int $flags = 0
10 Parse flags. See http\Cookie::PARSE_* constants.
11 * Optional array $allowed_extras = NULL
12 List of extra attribute names to recognize.
21 $cookie = new http\Cookie("c1=v1; c2=v2; extra=foo; ".
22 "expires=Thu, Nov 7 2013 10:00:00 GMT; path=/a/b/c",
25 "cookies" => $cookie->getCookies(),
26 "extras" => $cookie->getExtras(),
27 "expires" => $cookie->getExpires(),
28 "max-age" => $cookie->getMaxAge(),
29 "domain" => $cookie->getDomain(),
30 "path" => $cookie->getPath(),
31 "flags" => $cookie->getFlags(),
32 "string" => (string) $cookie
62 string(77) "c1=v1; c2=v2; path=/a/b/c; expires=Thu, 07 Nov 2013 10:00:00 GMT; extra=foo; "