User Tools

Site Tools


php:filtreatment

Filtreatment Class

This class can be used to validate and filter text values based on several types of rules. It can treat a text value by performing one or more several types of validation. Each validation returns the filtered value or false if the input is not valid.

Currently the class can perform the validations for: integer values, floating point values, strip HTML tags, regular expression matching, e-mail address, HTML without potential cross site scripting (XSS) exploits, and escaped text values for SQL queries to avoid SQL injections.

Download latest version of Filtreatment Class (1.32 - 06.01.2010) here

php/filtreatment.txt · Last modified: 2013/03/16 17:40 (external edit)