Class Header
Methods Summary
-
static
parse ( string|array $header )
Parse an array of header values containing ";" separated data into an array of associative arrays representing the header key value pair data of the header. When a parameter does not contain a value, but just contains a key, this function will inject a key with a '' string value.
-
static
normalize ( string|array $header )
Converts an array of header values that may contain comma separated headers into an array of headers with no comma separated values.
Methods Details
static array parse ( string|array $header )
Parse an array of header values containing ";" separated data into an array of associative arrays representing the header key value pair data of the header. When a parameter does not contain a value, but just contains a key, this function will inject a key with a '' string value.
Parameters
string|array | $header | Header to parse into components. |
Returns
array Returns the parsed header values. |
static array normalize ( string|array $header )
Converts an array of header values that may contain comma separated headers into an array of headers with no comma separated values.
Parameters
string|array | $header | Header to normalize. |
Returns
array Returns the normalized header field values. |