PHP filter_list Filter Function
What is filter_list() in PHP?
Explanation
filter_list() is a function, used to list all supported filters.
Syntax:
filter_list()
Example :
<?php
print_r(filter_list());
?>
Result : Array ( [0] => int [1] => boolean [2] => float [3] => validate_regexp [4] => validate_url [5] => validate_email [6] => validate_ip [7] =>
string [8] => stripped [9] => encoded [10] => special_chars [11] => full_special_chars [12] => unsafe_raw [13] => email [14] => url [15] =>
number_int [16] => number_float [17] => magic_quotes [18] => callback ) In the above example, all the supported filters are listed using the function.