哈希空间 Ctrl + F 进行搜索
首页 php手册中文版 CSS中文手册 哈希文档 Markdown在线工具

PHP imap 组件

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)
8.0.0 The unused defaulthost parameter has been removed.

参见

打开 哈希空间 微信小程序中查看更佳