Requests_Utility_CaseInsensitiveDictionary::offsetExists() WordPress Method

This is the Requests_Utility_CaseInsensitiveDictionary::offsetExists() method. It checks whether an offset exists in the dictionary. The offset can be an integer or a string. If the offset exists, the method returns true. Otherwise, it returns false.

Requests_Utility_CaseInsensitiveDictionary::offsetExists( string $key ) #

Check if the given item exists


Parameters

$key

(string)(Required)Item key


Top ↑

Return

(boolean) Does the item exist?


Top ↑

Source

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

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.