W3cubDocs

/WordPress

Headers::getIterator(): ArrayIterator

Get an iterator for the data

Description

Converts the internally stored values to a comma-separated string if there is more than one value for a key.

Return

ArrayIterator

Source

public function getIterator() {
	return new FilteredIterator($this->data, [$this, 'flatten']);
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wporg-requests-response-headers/getiterator