<?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
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
12 Jul 2016
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 * *
27 Dec 2016
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.
29 Jul 2016
: 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.
12 Jul 2016
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
13 Jul 2016
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
Hot Tools
PHP library for dependency injection containers
PHP library for dependency injection containers
A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking
Small PHP library for optimizing images
Small PHP library for optimizing images