Closes the imap stream.
An IMAP\Connection instance.
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
Returns true on success or false on failure.
|The imap parameter expects an IMAP\Connection instance now; previously, a resource was expected.