imap_close
(PHP 4, PHP 5, PHP 7, PHP 8)
imap_close — Close an IMAP stream
說明
   imap_close(IMAP\Connection 
  $imap, int $flags = 0): boolCloses the imap stream.
參數
- 
imap
- 
IMAP\Connection 實例。 
- 
flags
- 
      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()
返回值
   成功時返回 true, 或者在失敗時返回 false。
  
更新日誌
| 版本 | 說明 | 
|---|---|
| 8.1.0 | 現在 imap參數接受 IMAP\Connection
  實例,之前接受 資源(resource)。 |