PHP Velho Oeste 2024

HttpResponse::setContentType

(PECL pecl_http >= 0.10.0)

HttpResponse::setContentTypecontent type を設定する

説明

static bool HttpResponse::setContentType ( string $content_type )

送信されるエンティティの Content-Type を設定します。

パラメータ

content_type

送信されるエンティティの content type (primary/secondary)。

返り値

成功した場合に TRUE を返します。 content type にプライマリパート、セカンダリパートが含まれていない場合に FALSE を返します。

参考

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top