« imap_rfc822_parse_adrlist
imap_rfc822_write_address »

imap_rfc822_parse_headers

(PHP 4, PHP 5, PHP 7, PHP 8)

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

説明

function imap_rfc822_parse_headers(string $headers, string $default_hostname = "UNKNOWN"): stdClass

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

パラメータ

headers

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

default_hostname

デフォルトのホスト名。

戻り値

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

参考

関連キーワード:
imap   ヘッダ   parse   headers   メール   adrlist   hostname   header   address   stdClass   パース   ホスト   フラグ   サーバー   アドレス
関連する関数・ページ:
function.imap-headers   function.imap-fetchheader   function.imap-is-open   function.imap-rfc822-parse-adrlist   function.imap-fetchmime   function.imap-msgno