array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.imap-rfc822-parse-headers.php', 1 => 'imap_rfc822_parse_headers', ), 'up' => array ( 0 => 'ref.imap.php', 1 => 'IMAP 函数', ), 'prev' => array ( 0 => 'function.imap-rfc822-parse-adrlist.php', 1 => 'imap_rfc822_parse_adrlist', ), 'next' => array ( 0 => 'function.imap-rfc822-write-address.php', 1 => 'imap_rfc822_write_address', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imap/functions/imap-rfc822-parse-headers.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
imap_rfc822_parse_headers — Parse mail headers from a string
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.