(PHP 4, PHP 5, PHP 7)
imap_lsub — List all the subscribed mailboxes
$imap_stream
, string $ref
, string $pattern
) : arrayGets an array of all the mailboxes that you have subscribed.
imap_stream
�� imap_open() ���ص� IMAP ����
ref
ref
should normally be just the server
specification as described in imap_open()
Passing untrusted data to this parameter is insecure, unless imap.enable_insecure_rsh is disabled.
pattern
ָ��������㼶�ĺδ���ʼ���ҡ�
����� pattern
���ַ��п�ʹ�����������ַ���
'*' �� '%'��
'*' ��ָ������������Ŀ¼. ����� '*' ��Ϊ
pattern
����ʱ, ��᷵����������㼶�ṹ��
'%' ��ָֻ���ص�ǰ���Ρ�
'%' ��Ϊ pattern
������ֻ�᷵�ض������䣻
'~/mail/%' ���� UW_IMAPD
��᷵����Ϊ ~/mail ��Ŀ¼, ������������Ŀ¼��
Returns an array of all the subscribed mailboxes.