http_parse_headers
Parse HTTP headers
&reftitle.description;
arrayhttp_parse_headers
stringheader
Parses HTTP headers into an associative array.
&reftitle.parameters;
header
string containing HTTP headers
&reftitle.returnvalues;
Returns an array on success&return.falseforfailure;.
&reftitle.examples;
Using http_parse_headers
]]>
&example.outputs;
text/html; chatset=UTF-8
[Server] => Funky/1.0
[Set-Cookie] => Array
(
[0] => foo=bar
[1] => baz=quux
)
[Folded] => works
too
)
]]>
&reftitle.seealso;
http_parse_message
http_parse_cookie