VailData数据验证类是用于服务器端(PHP)验证传入的数据值的合法性,简单易用
关于VailData的说明,TP上面已经有了,http://www.thinkphp.cn/code/191.html,上附件是新版本,
修改了一些Bug,最明显的是支持了数组的提交
如:
爱好 :<input>体育<br>
<input>数学 <br>
<input>英语
验证规则,可使用外部类方法验证如:
B.class.php
public function get_array_len($array,$min) {<br>
return $array ? count($array)>=$min : false; <br>
}
array(new B(),'get_array_len',1,'最少选择一个爱好!!!'),
VailData_New.zip
( 5 KB 下载:137 次 )
AD:真正免费,域名+虚机+企业邮箱=0元

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.
