WpOrg\Requests\Utility

CaseInsensitiveDictionary::offsetExists │ public │ WP 1.0 │ ReturnTypeWillChange

Check if the given item exists

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

Хуков нет.

Возвращает

boolean. Does the item exist?

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

$CaseInsensitiveDictionary = new CaseInsensitiveDictionary();
$CaseInsensitiveDictionary->offsetExists( $offset );
$offset(строка) (обязательный)
Item key.

Код CaseInsensitiveDictionary::offsetExists() WP 7.1.3

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

	if ($offset === null) {
		$offset = '';
	}

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