PHP 5: Form Checker
Johan Barbier (contact me)
This package can be used to sanitize and validate user input data.
It provides several classes to sanitize and validate text data that represent values of several types of data.
It can validate values as not empty or with a minimum and maximum length, according to regular expressions, as integers, that starts or not start with a given prefix, does not match a given list of values, as an e-mail address, as an URL, or check using a user defined function.
It can also sanitize values escaping with slashes, encoding with HTML entities, encode for use as URL parameters, trim to remove white spaces, remove any non-digit characters, and sanitize the values with an user defined function.
Click here for detailed information about this class on phpclasses.org