PHP Classes


Recommend this page to a friend!
  Classes of Matteo Hertel  >  MH Validator  >  >  Download  
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: MH Validator
Validate multiple input text values
Author: By
Last change:
Date: 4 years ago
Size: 656 bytes


Class file image Download

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: