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, or FALSE on failure.
&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
)
]]>