« 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   default   hostname   header   write   address   stdClass   複数   パース   ホスト   フラグ   サーバー   参考   アドレス
関連する関数・ページ:
function.imap-headers   function.imap-rfc822-parse-adrlist   function.imap-is-open   function.imap-fetchheader   function.imap-errors   function.imap-fetchtext