The PHP filters is used to sanitize and validate data coming from insecure sources, like user supplied input (This data may come from an HTML form).
There are 2 main types of filters:
1. Validation : is used to validate or check if the data meets certain qualifications
2. Sanitization : will sanitize the data, so it may alter it by removing undesired characters.