Login   Register  
PHP Classes
elePHPant
Icontem

File: README.md

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Matteo Hertel  >  MH Validator  >  README.md  >  Download  
File: README.md
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: MH Validator
Validate multiple input text values
Author: By
Last change:
Date: 1 year ago
Size: 656 bytes
 

Contents

Class file image Download
MH_Validator

PHP class to validate input,

There are two type of validation, with static function to take a one shot validation and a regular way by instantiating 
the object, in this way an error array will be generated if an error will be found.

Note by calling the notEmpty function the orginal input wll be stripped by reference

You can validate:


- string
- number
- float
- integer
- boolean
- notEmpty string
- email
- ip
- ipv4
- ipv6
- url
- alphabetic string
- strong password
- compare two string
- check if the string lenght is between two values

You can find the demo of this class at: http://test.matteohertel.com/MH_Validator/index.php