The filter_list() function is used to list all supported filters.
Syntax
filter_list()
Return
The filter_list() function returns an array of filters available. It returns an empty array if there are no filters.
Example
<?php foreach (filter_list() as $id => $filter) { echo '<tr><td>' . $filter . '</td><td>' . filter_id($filter) . '</td></tr>'; } ?>
Output
The following is the output.
int257 boolean258 float259 validate_regexp272 validate_domain277 validate_url273 validate_email274 validate_ip275 validate_mac276 string513 stripped513 encoded514 special_chars515 full_special_chars522 unsafe_raw516 email517 url518 number_int519 number_float520 magic_quotes521 callback1024