WordPress at a glance
function is not described

Requests_Response_Headers::flatten() public WP 1.0

Flattens a value into a string

Converts an array into a string by imploding values with a comma, as per RFC2616's rules for folding headers.

It's a method of the class: Requests_Response_Headers{}

No Hooks.

Return

String. Flattened value

Usage

$Requests_Response_Headers = new Requests_Response_Headers();
$Requests_Response_Headers->flatten( $value );
$value(string/array) (required)
Value to flatten

Code of Requests_Response_Headers::flatten() WP 5.5.1

<?php
public function flatten($value) {
	if (is_array($value)) {
		$value = implode(',', $value);
	}

	return $value;
}