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
|