« imap_is_open
imap_list »

imap_last_error

(PHP 4, PHP 5, PHP 7, PHP 8)

imap_last_error — ページリクエスト時に生じた直近の IMAP エラーを返す

説明

function imap_last_error(): string|false

現在のページに生じた直近の IMAP エラーメッセージの全文を返します。 エラースタックは変更されません。 imap_last_error() を続けてコールした際、 コール間に新規エラーが生じていない場合は同じエラーが返されます。

パラメータ

この関数にはパラメータはありません。

戻り値

現在のページに生じた直近の IMAP エラーメッセージの全文を返します。 エラーメッセージが存在しない場合は false を返します。

参考

  • imap_errors() - 発生したすべての IMAP エラーを返す

関連キーワード:
imap   直近   last   リクエスト   エラーメッセージ   全文   list   スタック   参考   errors
関連する関数・ページ:
function.imap-errors   function.imap-is-open   function.imap-listmailbox   function.imap-fetchtext   function.imap-expunge   function.imap-close