# imap_is_open

(PHP 8 >= 8.2.1)

imap_is_open — Check if the IMAP stream is still valid

### Beschreibung

imap_is_open(IMAP\Connection `$imap`): bool

Check if the IMAP stream is still valid.

### Parameter-Liste

`imap`

  Eine IMAP\Connection-Instanz.

### Rückgabewerte

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

### Beispiele

Beispiel #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);
// ...
?>`
`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open