Parse mail headers from a string

imap_rfc822_parse_headers

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

imap_rfc822_parse_headersParse mail headers from a string

說明

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

Gets an object of various header elements, similar to imap_header().

參數

headers

The parsed headers data

default_hostname

The default host name

返回值

Returns an object similar to the one returned by imap_header(), except for the flags and other properties that come from the IMAP server.

參見

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *