array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'eventhttprequest.findheader.php', 1 => 'EventHttpRequest::findHeader', 2 => 'Finds the value belonging a header', ), 'up' => array ( 0 => 'class.eventhttprequest.php', 1 => 'EventHttpRequest', ), 'prev' => array ( 0 => 'eventhttprequest.construct.php', 1 => 'EventHttpRequest::__construct', ), 'next' => array ( 0 => 'eventhttprequest.free.php', 1 => 'EventHttpRequest::free', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventhttprequest/findheader.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

EventHttpRequest::findHeader

(PECL event >= 1.4.0-beta)

EventHttpRequest::findHeaderFinds the value belonging a header

说明

public EventHttpRequest::findHeader( string $key , string $type ): void

Finds the value belonging a header.

参数

key

The header name.

type

One of EventHttpRequest::*_HEADER constants.

返回值

Returns null if header not found.

参见