imap_is_open
(PHP 8 >= 8.2.1)
imap_is_open — Check if the IMAP stream is still valid
Description
Check if the IMAP stream is still valid.
Examples
Example #1 imap_is_open() example
<?php
$mbox = imap_open("{imap.example.org:143}INBOX", "username", "password") or die(implode(", ", imap_errors()));
imap_is_open($mbox);
// ...
?>来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
