Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP filter_id() Function

PHP filter_id() Function


PHP Filter Reference Manual Complete PHP Filter Reference Manual


Definition and Usage

The filter_id() function returns the ID number of a specified filter.

Returns the filter ID number on success, or NULL if the filter does not exist.

Syntax

filter_id(filter_name)

Parameters Description
filter_name Required. Specifies the filter whose ID number is to be retrieved.
 必须是过滤器名称(不是过滤器 ID 名)。请使用 [ filter_list()](func-filter-list.html) 函数来获取所有被支持的过滤器的名称。 |

Example

The output of the code is shown below:

274


PHP Filter Reference Manual Complete PHP Filter Reference Manual