W3cubDocs

/WordPress

Requests::flattern( array $array )

This method has been deprecated. Misspelling of Requests::flatten instead.

Convert a key => value array to a ‘key: value’ array for headers

Parameters

$array

(array) (Required) Dictionary of header values

Return

(string[]) List of headers

Source

File: wp-includes/class-requests.php

public static function flattern($array) {
		return self::flatten($array);
	}

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests/flattern