How to use filter in PHP
In this article I am going to explain about PHP filter.
PHP Filter
PHP filter is used for security purpose. The insecure data is filtered by PHP filter.
Use of PHP filter
The web application is based on external input, so it is important that data comes from external input, it should be secure, and if you are using the PHP filter, then you should be sure , data is secure.
External data of PHP
External data of PHP comes from following mediums
- By the form
- By the cookies
- Web services data
- Database query results
Types of filter
There are two type of PHP filters:
- Validating filters
It is used for validating user input.
- Sanitizing filters
It is used to allow or disallow specified characters in a string.
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here