see other
[mdref/mdref-http] / http / Header / parse.md
1 # static array http\Header::parse(string $header[, string $header_class = NULL])
2
3 Parse HTTP headers.
4 See also http\Header\Parser.
5
6 ## Params:
7
8 * string $header
9 The complete string of headers.
10 * Optional string $header_class
11 A class extending http\Header.
12
13 ## Returns:
14
15 * array of parsed headers, where the elements are instances of $header_class if specified.
16 * false, if parsing fails.
17
18 ## Warnings:
19
20 * If the header parser fails.