Provides various official and user-released code examples. For code reference, you are welcome to learn more. The VailData data verification class is used for server-side (PHP) Verification to verify the legitimacy of incoming data values, which is easy to use.
For more information about VailData, see http://www.thinkphp1.cn/code/191.html. the attachment is a new version,
Some bugs have been modified. The most obvious difference is that the array submission is supported.
For example:
Hobbies:
Sports
Mathematics
English
Verification rules, which can be verified using external class methods, such:
B. class. php
Public function get_array_len ($ array, $ min ){
Return $ array? Count ($ array) >=$ min: false;
}
Array (new B (), 'Get _ array_len ', 1,' select at least one hobby !!! '),
VailData_New.zip (5 KB download: 137 times)
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB