PEAR_ErrorStack::getErrors() – Retrieve all errors since last purge


require_once 'PEAR/ErrorStack.php';

array PEAR_ErrorStack::getErrors ( boolean $purge = false , string|false $level = false )


Retrieve all errors since last purge, or filter all errors and only return errors of a particular error level, leaving the rest on the stack.


boolean $purge

set in order to empty the error stack

string $level

Level name to check for a particular severity. Use this to determine whether only a particular class of errors has occurred, such as whether any warnings have occurred (errors will be ignored)


throws no exceptions thrown


This function can not be called statically.

Standard Error Message Template generator from error code (Previous) Standard file/line number/function/class context callback (Next)
Last updated: Tue, 06 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.