WpOrg\Requests\Utility
CaseInsensitiveDictionary::offsetGet
Get the value for the item
Метод класса: CaseInsensitiveDictionary{}
Хуков нет.
Возвращает
Строку|null. Item value (null if the item key doesn't exist)
Использование
$CaseInsensitiveDictionary = new CaseInsensitiveDictionary(); $CaseInsensitiveDictionary->offsetGet( $offset );
- $offset(строка) (обязательный)
- Item key.
Код CaseInsensitiveDictionary::offsetGet() CaseInsensitiveDictionary::offsetGet WP 6.8.3
public function offsetGet($offset) {
if (is_string($offset)) {
$offset = strtolower($offset);
}
if (!isset($this->data[$offset])) {
return null;
}
return $this->data[$offset];
}