PEAR_ErrorStack::hasErrors

PEAR_ErrorStack::hasErrors() – Determine whether there are any errors on the stack

Synopsis

require_once 'PEAR/ErrorStack.php';

boolean PEAR_ErrorStack::hasErrors ( string $level = false )

Description

Determine whether there are any errors on the stack

Parameter

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

throws no exceptions thrown

Note

This function can not be called statically.

Get an error code => error message mapping callback (Previous) Pop an error off of the error stack (Next)
Last updated: Wed, 22 Oct 2014 — 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.