GuzzleHttpPsr7parse_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.

Description

(array) GuzzleHttp\Psr7\parse_header( (string|array) $header ); 

When a parameter does not contain a value, but just contains a key, this function will inject a key with a '' string value.

Returns (array)

Returns the parsed header values.

Parameters (1)

0. $header (string|array)
Header to parse into components.

Usage

  1. if ( !function_exists( 'GuzzleHttp\Psr7\parse_header' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Psr7/functions.php'; 
  3.  
  4. // Header to parse into components. 
  5. $header = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = GuzzleHttp\Psr7\parse_header($header); 
  9.  

Defined (1)

The function is defined in the following location(s).

/lib/Azure/GuzzleHttp/Psr7/functions.php