Home PHP Libraries Other libraries A 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

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

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 * *

How Do I Link Static Libraries That Depend on Other Static Libraries? How Do I Link Static Libraries That Depend on Other Static Libraries?

13 Dec 2024

Linking Static Libraries to Other Static Libraries: A Comprehensive ApproachStatic libraries provide a convenient mechanism to package reusable...

PHP implements a complete example of the Model base class based on mysqli, phpmysqlimodel base_PHP tutorial PHP implements a complete example of the Model base class based on mysqli, phpmysqlimodel base_PHP tutorial

12 Jul 2016

PHP implements a complete instance of the Model base class based on mysqli, phpmysqlimodel base. PHP implements a complete example of the Model base class based on mysqli, phpmysqlimodel base This article describes an example of PHP implementing the Model base class based on mysqli. Share it with everyone for your reference, the details are as follows: DB.c

PHP implementation of generating a complete instance of the MYSQL statement class through parameters, mysql statement_PHP tutorial PHP implementation of generating a complete instance of the MYSQL statement class through parameters, mysql statement_PHP tutorial

12 Jul 2016

PHP implements the generation of complete instances of MYSQL statement classes and mysql statements through parameters. A complete example of generating a MYSQL statement class through parameters in PHP, mysql statement. This example describes how to generate a MYSQL statement class through parameters in PHP. Share it with everyone for your reference, the details are as follows

How to Silence TensorFlow\'s Debugging Output? How to Silence TensorFlow\'s Debugging Output?

28 Oct 2024

Suppression of Tensorflow Debugging OutputTensorflow prints extensive information about loaded libraries, found devices, and other debugging data...

How Does jQuery Simplify DOM Manipulation for Web Developers? How Does jQuery Simplify DOM Manipulation for Web Developers?

03 Jan 2025

Overflow: Hidden and Expansion of HeightjQuery distinguishes itself from other JavaScript libraries through its cross-platform compatibility and...

See all articles