IMAP_CLOSE(3) 1 IMAP_CLOSE(3)
imap_close - Close an IMAP stream
SYNOPSIS
bool imap_close (resource $imap_stream, [int $flag])
DESCRIPTION
Closes the imap stream.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $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(3)
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
imap_open(3).
PHP Documentation Group IMAP_CLOSE(3)