Returns key value pairs of response headers.
public static parseHeaders ( array $headers ) : array | ||
$headers | array | List of headers. Example: ['Content-Type: text/html', '...'] |
return | array | Key/value pairs of headers, e.g. ['Content-Type' => 'text/html'] |