The filter_list() function returns a list of all the supported filter names.
filter_list()
Return Value: | An array of all supported filter names, an empty array if there are no filter names |
---|---|
PHP Version: | 5.2+ |
Here, the filter_id() and the filter_list() functions are used to list the ID and filter name of all 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>
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!