WordPress\AiClientDependencies\Psr\Http\Message
MessageInterface::getHeader
Retrieves a message header value by the given case-insensitive name.
This method returns an array of all the header values of the given case-insensitive header name.
If the header does not appear in the message, this method MUST return an empty array.
Метод класса: MessageInterface{}
Хуков нет.
Возвращает
string[]. An array of string values as provided for the given
header. If the header does not appear in the message, this method MUST return an empty array.
Использование
$MessageInterface = new MessageInterface(); $MessageInterface->getHeader( $name ): array;
- $name(строка) (обязательный)
- Case-insensitive header field name.
Код MessageInterface::getHeader() MessageInterface::getHeader WP 7.1.4
public function getHeader(string $name): array;