(PHP 8 >= 8.2.1)
imap_is_open — Vérifier si le flux IMAP est toujours valide
Exemple #1 Exemple de imap_is_open()
<?php
$mbox = imap_open("{imap.example.org:143}INBOX", "username", "password") or die(implode(", ", imap_errors()));
imap_is_open($mbox);
// ...
?>