php8.5
Home/ Manual/ imap / functions/ imap_headers

imap_headers

PHP function Edit on GitHub ✎

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

Returns headers for all messages in a mailbox

Description

imap_headers(IMAP\Connection $imap): array|false

Returns headers for all messages in a mailbox.

Parameters

Return Values

Returns an array of string formatted with header info. One element per mail message. Returns false on failure.

Changelog

VersionDescription

Source: reference/imap/functions/imap-headers.xml · from the official PHP manual (php/doc-en)