PHP 8.4.2 Released!

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);
// ...
?>

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top