Home > PHP > Function > IMAP > imap_last_error()

imap_last_error()

imap_last_error - Gets the last IMAP error that occurred during this page request

Syntax

string imap_last_error ()

Arguments

-

Description

Gets the full text of the last IMAPerror message that occurred on the current page. The error stack is untouched; calling imap_last_error() subsequently, with no intervening errors, will return the same error.

Version

PHP 4, 5

Return value

Returns the full text of the last IMAP error message that occurred on the current page. Returns FALSE if no error messages are available.