Query: http_parse_cookie
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
HTTP_PARSE_COOKIE(3) 1 HTTP_PARSE_COOKIE(3) http_parse_cookie - Parse HTTP cookieSYNOPSISobject http_parse_cookie (string $cookie, [int $flags], [array $allowed_extras])DESCRIPTIONParses HTTP cookies like sent in a response into a struct.PARAMETERSo $cookie - string containing the value of a Set-Cookie response header o $flags - parse flags ( HTTP_COOKIE_PARSE_RAW) o $allowed_extras - array containing recognized extra keys; by default all unknown keys will be treated as cookie namesRETURN VALUESReturns a stdClass object on success or FALSE on failure.EXAMPLESExample #1 Using http_parse_cookie(3) <?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 )SEE ALSOhttp_parse_headers(3), http_parse_message(3), http_build_cookie(3). PHP Documentation Group HTTP_PARSE_COOKIE(3)
Related Man Pages |
---|
http_parse_cookie(3) - php |
http_parse_message(3) - php |
http_persistent_handles_count(3) - php |
sybase_fetch_object(3) - php |
apache2::cookie(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Sendmail Rewrite Ruleset |