Javascript debugger
Website design
↑
string containing the value of a Set-Cookie
response header
parse flags (HTTP_COOKIE_PARSE_RAW
)
array containing recognized extra keys; by default all unknown keys will be treated as cookie names
<?php
print_r(http_parse_cookie("foo=bar; bar=baz; path=/; domain=example.com; comment=; secure", 0, array("comment")));
?>
The above example will output:
stdClass Object
(
[cookies] => Array
(
[foo] => bar
[bar] => baz
)
[extras] => Array
(
[comment] =>
)
[flags] => 16
[expires] => 0
[path] => /
[domain] => example.com
)