GuzzleHttpheaders_from_lines

Parses an array of header lines into an associative array of headers.

Description

(array) GuzzleHttp\headers_from_lines( (array) $lines ); 

Returns (array)

Parameters (1)

0. $lines (array)
Header lines array of strings in the following format: Name: Value

Usage

  1. if ( !function_exists( 'GuzzleHttp\headers_from_lines' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/functions.php'; 
  3.  
  4. // Header lines array of strings in the following 
  5. // format: "Name: Value" 
  6. $lines = array(); 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = GuzzleHttp\headers_from_lines($lines); 
  10.  

Defined (1)

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

/lib/Azure/GuzzleHttp/functions.php