PEAR_Validate::getFailures

PEAR_Validate::getFailures() – getFailures

Synopsis

require_once '/Validate.php';

void PEAR_Validate::getFailures ( )

Description

Returns a list of failures recorded by the last validation attempt. The list is in format:

<?php
array(
    
'error' =>
        array(
            array(
'field' => 'name''name must contain only letters, numbers or underscore'),
        ),
    
'warning' =>
        array(
            array(
'field' => 'version''version should be less than 2.0'),
        )
);
?>

Throws

throws no exceptions thrown

Note

This function can not be called statically.

_addWarning (Previous) Get a list of valid stability levels (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.