search
HomePHP LibrariesOther librariesA very complete php verification class
A very complete php verification class
<?php
/**
 * Validator 数据验证类
 */
class Validator {
    /**
     * 待校验数据
     * @var array
     */
    private $_data;
    /**
     * 校验规则
     * @var array
     */
    private $_ruleList = null;
    /**
     * 校验结果
     * @var bool
     */
    private $_result = null;
    /**
     * 校验数据信息
     * @var array
     */
    private $_resultInfo = array();
    /**
     * 构造函数
     * @param array $data 待校验数据
     */
    public function __construct($data = null)
    {
        if ($data) {
            $this->_data = $data;
        }
    }

This is a very complete php verification class, friends who need it can download and use

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

A very useful verification code tool classA very useful verification code tool class

25Jul2016

A very useful verification code tool class

Very practical php verification code class, very practical php verification code_PHP tutorialVery practical php verification code class, very practical php verification code_PHP tutorial

12Jul2016

Very practical php verification code class, very practical php verification code. Very practical php verification code class, very practical php verification code This example shares the php verification code class for your reference. The specific content is as follows php /** * * @author Administrator * *

PHP implements a relatively complete database operation classPHP implements a relatively complete database operation class

27Dec2016

This article mainly introduces PHP to implement a relatively complete database operation class, which can implement basic database connections, execute SQL statements, error prompts and other related skills. Friends in need can refer to it.

The complete example of PHP time class is very practicalThe complete example of PHP time class is very practical

29Jul2016

: This article mainly introduces a complete example of the PHP time class, which is very practical. Students who are interested in PHP tutorials can refer to it.

Complete example of PHP time class (very practical), _PHP tutorialComplete example of PHP time class (very practical), _PHP tutorial

12Jul2016

Complete example of PHP time class (very practical). A complete example of PHP time class (very practical), this article describes the PHP time class through examples. Share it with everyone for your reference, the details are as follows: phpheader("Content-type:text/html;Charset=utf-8");cla

A very practical PHP verification code class_PHP tutorialA very practical PHP verification code class_PHP tutorial

13Jul2016

A very practical php verification code class. A more practical PHP graphic verification code generation class, the calling method is also very simple, friends in need can refer to it. The code is as follows Copy the code ?php classImageCode{ private $widt

See all articles