$_errors
$_errors :
This class provides validation functionality on objects and arrays.
Example:
$errors = new Errors($array); // $array is a set of key-value pairs. However, the argument is optional
$errors->password('pass'); // Requires that the 'pass' property is at minimum 8 characters long and contains one number and one character
$errors->required('username'); // The 'username' property is required
$errors->minLen('username', 3'); // The 'username' property must be at least 3 characters
$errors->email('email'); // The 'email' property must be a proper e-mail address
if($errors->pass != $errors->passConfirm)
$errors->addError('passConfirm', 'Passwords do not match');
var_dump($errors->isInvalid()); // Prints NULL or an array of errors, where the key is the property name