Forum und email

imap_rfc822_parse_headers

(PHP 4, PHP 5)

imap_rfc822_parse_headers — 文字列からメールヘッダを解釈する

説明

object imap_rfc822_parse_headers ( string $headers [, string $defaulthost ] )

複数のヘッダ要素を含むオブジェクトを取得します。 imap_header() と同じようなものです。

パラメータ

headers

パースされたヘッダデータ。

defaulthost

デフォルトのホスト名。

返り値

imap_header() が返すオブジェクトと似たものを返します。 フラグおよび他の要素は IMAP サーバから取得するいう点が異なります。