array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.imap-is-open.php', 1 => 'imap_is_open', 2 => 'Check if the IMAP stream is still valid', ), 'up' => array ( 0 => 'ref.imap.php', 1 => 'IMAP Функції', ), 'prev' => array ( 0 => 'function.imap-headers.php', 1 => 'imap_headers', ), 'next' => array ( 0 => 'function.imap-last-error.php', 1 => 'imap_last_error', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imap/functions/imap-is-open.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

imap_is_open

(PHP 8 >= 8.2.1)

imap_is_openCheck if the IMAP stream is still valid

Опис

imap_is_open(IMAP\Connection $imap): bool

Check if the IMAP stream is still valid.

Параметри

imap

Примірник IMAP\Connection.

Значення, що повертаються

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

Приклади

Приклад #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);
// ...
?>