PHP Filter

PHP Filter


                                          

In this tutorial we have to learn about PHP FILTER.The PHP filters is used to  sanitize and validate external data with example code. PHP filter has useful extensions which used to check user input and designed in a way to make validation quite easy and faster.

For upcoming tutorials we have to learned about PHP Filter functions :

Function Description
filter_has_var() Checks whether a variable of a specified input type exist
filter_id() Returns the filter ID of a specified filter name
filter_input() Gets an external variable (e.g. from form input) and optionally filters it
filter_input_array() Gets external variables (e.g. from form input) and optionally filters them
filter_list() Returns a list of all supported filter names
filter_var() Filters a variable with a specified filter
filter_var_array() Gets multiple variables and filter them