On this page
Requests::flattern( array $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
$arrayarray Required-
Dictionary of header values
Return
array List of headers
Source
File: wp-includes/class-requests.php. View all references
public static function flattern($array) {
return self::flatten($array);
}
Related
Uses
| Uses | Description |
|---|---|
| Requests::flatten() wp-includes/class-requests.php | Convert a key => value array to a ‘key: value’ array for headers |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests/flattern