(PHP 4, PHP 5, PHP 7, PHP 8)
imap_listscan — Returns the list of mailboxes that matches the given text
$imap,$reference,$pattern,$content
   Returns an array containing the names of the mailboxes that have
   content in the text of the mailbox.
  
   This function is similar to imap_listmailbox(),
   but it will additionally check for the presence of the string
   content inside the mailbox data.
  
imapПримірник IMAP\Connection.
reference
       reference should normally be just the server 
       specification as described in imap_open()
      
Передавати у цей параметр неперевірені дані небезпечно, якщо увімкнено imap.enable_insecure_rsh.
patternВизначає, де в ієрархії поштових скриньок почати пошук.
У
значенні параметру pattern можна використовувати два
спеціальні символи: "*" і
"%". "*" —
повернути всі поштові скриньки. Якщо значення pattern
дорівнюватиме "*", то повернеться список усієї
ієрархії поштових скриньок. "%" — повернути тільки
поточний рівень. Якщо значення pattern
дорівнюватиме "%", то повернеться тільки верхній рівень
поштових скриньок; "~/mail/%" на
UW_IMAPD поверне усі поштові скриньки в теці
~/mail, крім тих, що в її підтеках.
contentThe searched string
   Returns an array containing the names of the mailboxes that have
   content in the text of the mailbox,  або false в разі помилки.
  
| Версія | Опис | 
|---|---|
| 8.1.0 | Тепер параметр imapмає бути примірником
  IMAP\Connection; раніше очікувався дійсний resourceimap. | 
