W3cubDocs

/WordPress

CaseInsensitiveDictionary::__construct( array $data = array() )

Creates a case insensitive dictionary.

Parameters

$dataarrayoptional
Dictionary/map to convert to case-insensitive

Default:array()

Source

public function __construct(array $data = []) {
	foreach ($data as $offset => $value) {
		$this->offsetSet($offset, $value);
	}
}

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