PHP 忒聊
綴豖
ヶ輛
imap_list
(PHP 3 = 3.0.4, PHP 4)
Description
Returns an array containing the names of the mailboxes. See imap_getmailboxes() for a description of ref and pattern.
瞰赽 1. imap_list() example
$mbox = imap_open("{your.imap.host}","username","password",OP_HALFOPEN) or die("can't connect: ".imap_last_error()); $list = imap_list($mbox,"{your.imap.host}","*"); if(is_array($list)) {reset($list); while (list($key, $val) = each($list)) print imap_utf7_decode($val)." br \n";} else print "imap_list failed: ".imap_last_error()."\n"; imap_close($mbox);
綴豖
れ萸
ヶ輛
imap_last_error
奻珨撰
imap_listmailbox