WpOrg\Requests\Utility

CaseInsensitiveDictionary::__construct()publicWP 1.0

Creates a case insensitive dictionary.

Метод класса: CaseInsensitiveDictionary{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$CaseInsensitiveDictionary = new CaseInsensitiveDictionary();
$CaseInsensitiveDictionary->__construct( $data );
$data(массив)
Dictionary/map to convert to case-insensitive
По умолчанию: []

Код CaseInsensitiveDictionary::__construct() WP 6.6.2

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