imap_close Close an IMAP stream &reftitle.description; boolimap_close resourceimap_stream intflag Closes the imap stream. &reftitle.parameters; &imap.imap-stream.description; 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 &reftitle.returnvalues; &return.success; &reftitle.seealso; imap_open