WpOrg\Requests\Utility

CaseInsensitiveDictionary::offsetExists()publicWP 1.0ReturnTypeWillChange

Check if the given item exists

Method of the class: CaseInsensitiveDictionary{}

No Hooks.

Return

true|false. Does the item exist?

Usage

$CaseInsensitiveDictionary = new CaseInsensitiveDictionary();
$CaseInsensitiveDictionary->offsetExists( $offset );
$offset(string) (required)
Item key

CaseInsensitiveDictionary::offsetExists() code WP 6.6.2

public function offsetExists($offset) {
	if (is_string($offset)) {
		$offset = strtolower($offset);
	}

	return isset($this->data[$offset]);
}