(PHP 4, PHP 5, PHP 7)
imap_close — Close an IMAP stream
$imap_stream
$flag
Closes the imap stream.
imap_stream
imap_open()이 반환한 IMAP 스트림입니다.
flag
If set to CL_EXPUNGE, the function will silently expunge the mailbox before closing, removing all messages marked for deletion. You can achieve the same thing by using imap_expunge()
CL_EXPUNGE
성공 시 TRUE를, 실패 시 FALSE를 반환합니다.
TRUE
FALSE