imap_close Close an IMAP stream Description boolimap_close resourceimap_stream intflag Closes the imap stream. Takes an optional flag CL_EXPUNGE, which will silently expunge the mailbox before closing, removing all messages marked for deletion. See also: imap_open.