WpOrg\Requests\Utility
CaseInsensitiveDictionary::offsetExists
Check if the given item exists
Метод класса: CaseInsensitiveDictionary{}
Хуков нет.
Возвращает
boolean. Does the item exist?
Использование
$CaseInsensitiveDictionary = new CaseInsensitiveDictionary(); $CaseInsensitiveDictionary->offsetExists( $offset );
- $offset(строка) (обязательный)
- Item key.
Код CaseInsensitiveDictionary::offsetExists() 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]);
}