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

imap_lsub

PHP function Edit on GitHub ✎

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

List all the subscribed mailboxes

Description

imap_lsub(IMAP\Connection $imap, string $reference, string $pattern): array|false

Gets an array of all the mailboxes that you have subscribed.

Parameters

reference

reference should normally be just the server specification as described in imap_open()

Insecure

pattern

Pattern

Return Values

Returns an array of all the subscribed mailboxes, Falseforfailure.

Changelog

VersionDescription

See Also

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