PEAR_Validate::getFailures()
PEAR_Validate::getFailures()
-- getFailures
概要
require_once '/Validate.php'; |
void
PEAR_Validate::getFailures
()
説明
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
no exceptions thrown
注意
この関数は、スタティックにコールする
ことはできません。