IMAP 函数
PHP Manual

imap_headerinfo

(PHP 4, PHP 5, PHP 7)

imap_headerinfoRead the header of the message

说明

object imap_headerinfo ( resource $imap_stream , int $msg_number [, int $fromlength = 0 [, int $subjectlength = 0 [, string $defaulthost = NULL ]]] )

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

参数

imap_stream

imap_open() 返回的 IMAP 流。

msg_number

The message number

fromlength

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

subjectlength

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:

参见


IMAP 函数
PHP Manual