WpOrg\Requests\Utility

CaseInsensitiveDictionary::__construct()publicWP 1.0

Creates a case insensitive dictionary.

Method of the class: CaseInsensitiveDictionary{}

No Hooks.

Return

null. Nothing (null).

Usage

$CaseInsensitiveDictionary = new CaseInsensitiveDictionary();
$CaseInsensitiveDictionary->__construct( $data );
$data(array)
Dictionary/map to convert to case-insensitive
Default: []

CaseInsensitiveDictionary::__construct() code WP 6.6.2

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