php man page for http_parse_headers

Query: http_parse_headers

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

HTTP_PARSE_HEADERS(3)							 1						     HTTP_PARSE_HEADERS(3)

http_parse_headers - Parse HTTP headers

SYNOPSIS
array http_parse_headers (string $header)
DESCRIPTION
Parses HTTP headers into an associative array.
PARAMETERS
o $header - string containing HTTP headers
RETURN VALUES
Returns an array on success or FALSE on failure.
EXAMPLES
Example #1 Using http_parse_headers(3) <?php $headers = "content-type: text/html; charset=UTF-8 ". "Server: Funky/1.0 ". "Set-Cookie: foo=bar ". "Set-Cookie: baz=quux ". "Folded: works too "; print_r(http_parse_headers($headers)); ?> The above example will output: Array ( [Content-Type] => text/html; charset=UTF-8 [Server] => Funky/1.0 [Set-Cookie] => Array ( [0] => foo=bar [1] => baz=quux ) [Folded] => works too )
SEE ALSO
http_parse_message(3), http_parse_cookie(3). PHP Documentation Group HTTP_PARSE_HEADERS(3)
Related Man Pages
http::headers::util(3) - redhat
http_parse_cookie(3) - php
http_parse_params(3) - php
getallheaders(3) - php
nsapi_request_headers(3) - php
Similar Topics in the Unix Linux Community
UNIX.COM 2017 Year End Summary
New Code Tags (Syntax Highlighting)
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update