# PHP 函数:imap\_fetchstructure()

**URL:** <https://www.isharkfly.com/t/php-imap-fetchstructure/4744>\
**Category:** PHP\
**Created:** [October 20, 2012, 4:05am UTC](https://www.isharkfly.com/t/php-imap-fetchstructure/4744 "2012-10-20T04:05:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 20, 2012, 4:05am UTC](https://www.isharkfly.com/t/php-imap-fetchstructure/4744/1 "2012-10-20T04:05:30Z")

</div>

获取某信件的结构信息。

语法: array imap\_fetchstructure(int imap\_stream, int msg\_number);

返回值: 数组

函数种类: 网络系统

内容说明  
本函数可读取指定信件的相关信息。参数 imap\_stream 为 IMAP 的代号。参数 msg\_number 为信件的序号。返回的信息为数组的方式，各元素的内容见下表

![](https://www.isharkfly.com/images/transparent.png)

其中 type 元素的值代表的意义如下

![](https://www.isharkfly.com/images/transparent.png)

而 encoding 值代表的意义如下

![](https://www.isharkfly.com/images/transparent.png)
