List all filter names supported by the filter_list() function.
<?php print_r(filter_list()); ?> |
The filter_list() function returns an array of all the supported filter names.
filter_list() |
Return Value: |
An array containing all supported filter names, or an empty array if no filter names are available. |
PHP Version: |
5.2+ |
In this case, the filter_id() and filter_list() functions are utilized to display the ID and name of all available filters.
<table> <tr> <td>Filter Name</td> <td>Filter ID</td> </tr> <?php foreach (filter_list() as $id =>$filter) { echo ‘<tr><td>’ . $filter . ‘</td><td>’ . filter_id($filter) . ‘</td></tr>’; } ?> </table> |