W3cubDocs

/WordPress

Requests_Utility_CaseInsensitiveDictionary::offsetExists( string $key )

Check if the given item exists

Parameters

$key

(string) (Required) Item key

Return

(boolean) Does the item exist?

Source

File: wp-includes/Requests/Utility/CaseInsensitiveDictionary.php

public function offsetExists($key) {
		$key = strtolower($key);
		return isset($this->data[$key]);
	}

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_utility_caseinsensitivedictionary/offsetexists