checkItem()
checkItem(string $field, mixed $value, mixed $rules, array $data, string $title = '', array $msg = []) : mixed
验证单个字段规则
Parameters
| string |
$field |
字段名
|
| mixed |
$value |
字段值
|
| mixed |
$rules |
验证规则
|
| array |
$data |
数据
|
| string |
$title |
字段描述
|
| array |
$msg |
提示信息
|
Returns
mixed
—