downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HttpResponse::setLastModified> <HttpResponse::setGzip
[edit] Last updated: Fri, 25 May 2012

view this page in

HttpResponse::setHeader

(PECL pecl_http >= 0.12.0)

HttpResponse::setHeaderヘッダを設定する

説明

static bool HttpResponse::setHeader ( string $name [, mixed $value [, bool $replace = true ]] )

HTTP ヘッダを送信します。

パラメータ

name

ヘッダの名前。

value

ヘッダの値。設定しなかった場合は、 この名前のヘッダは送信されません。

replace

既存のヘッダを置き換えるかどうか。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

参考



add a note add a note User Contributed Notes HttpResponse::setHeader
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites