array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.imap-headerinfo.php', 1 => 'imap_headerinfo', 2 => 'Read the header of the message', ), 'up' => array ( 0 => 'ref.imap.php', 1 => 'IMAP Функції', ), 'prev' => array ( 0 => 'function.imap-header.php', 1 => 'imap_header', ), 'next' => array ( 0 => 'function.imap-headers.php', 1 => 'imap_headers', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imap/functions/imap-headerinfo.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

imap_headerinfo

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

imap_headerinfoRead the header of the message

Опис

imap_headerinfo(
    IMAP\Connection $imap,
    int $message_num,
    int $from_length = 0,
    int $subject_length = 0
): stdClass|false

Gets information about the given message number by reading its headers.

Параметри

imap

Примірник IMAP\Connection.

message_num

The message number

from_length

Number of characters for the fetchfrom property. Must be greater than or equal to zero.

subject_length

Number of characters for the fetchsubject property Must be greater than or equal to zero.

defaulthost

Значення, що повертаються

Returns false on error or, if successful, the information in an object with following properties:

Журнал змін

Версія Опис
8.1.0 Тепер параметр imap має бути примірником IMAP\Connection; раніше очікувався дійсний resource imap.
8.0.0 The unused defaulthost parameter has been removed.

Прогляньте також