imap_is_open

Check if the IMAP stream is still valid

&reftitle.description; `bool` `imap_is_open` `IMAP\Connection` `imap`

Check if the IMAP stream is still valid.

&reftitle.parameters;

&imap.imap-parameter.imap;
&reftitle.returnvalues;

Returns &true; if the stream is still valid, &false; otherwise.

&reftitle.examples;

### `imap_is_open` example

    <?php
    $mbox = imap_open("{imap.example.org:143}INBOX", "username", "password") or die(implode(", ", imap_errors()));
    imap_is_open($mbox);
    // ...
    ?>