Easy Tutorial
❮ Func Mysqli Get Proto Info Func Libxml Get Last Error ❯

PHP filter_id() Function



Definition and Usage

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

It returns the filter's ID number if successful, or NULL if the filter does not exist.

Syntax

Parameter Description
filter_name Required. Specifies the filter whose ID number is to be retrieved. <br> <br>This must be the filter name (not the filter ID name). Use filter_list()

Example

The output of the code is as follows:

❮ Func Mysqli Get Proto Info Func Libxml Get Last Error ❯