imap_thread

PHP 4 >= 4.0.7, PHP 5, PHP 7, PHP 8
imap_thread - Returns a tree of threaded message
Manual
Code Examples

imap_thread( IMAP\Connection$imap, [int$flags = SE_FREE] ): array|false

Gets a tree of a threaded message.

Parameters

imap

An IMAP\Connection instance.

flags

Return Values

imap_thread returns an associative array containing a tree of messages threaded by REFERENCES, or false on error.

Every message in the current mailbox will be represented by three entries in the resulting array:

$thread["XX.num"] - current message number

$thread["XX.next"]

$thread["XX.branch"]

Changelog

Version Description
8.1.0 The imap parameter expects an IMAP\Connection instance now; previously, a resource was expected.

Example of imap_thread

Show all examples for imap_thread

PHP Version:


Function imap_thread:

IMAP, POP3 and NNTP Functions

Most used PHP functions