PHP.nl

imap_listscan

imap_listscan

Returns the list of mailboxes that matches the given text

 **imap_listscan** IMAP\Connection $imap string $reference string $pattern string $content

Returns an array containing the names of the mailboxes that have in the text of the mailbox. content

This function is similar to , but it will additionally check for the presence of the string inside the mailbox data. imap_listmailbox``content

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

pattern``contentThe searched string

Returns an array containing the names of the mailboxes that have in the text of the mailbox, return.falseforfailure. content

imap_listmailbox``imap_search