php8.5
Home/ Manual/ filter / functions/ filter_id

filter_id

PHP function Edit on GitHub ✎

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

Returns the filter ID belonging to a named filter

Description

filter_id(string $name): int|false

Parameters

name

Name of a filter to get.

Return Values

ID of a filter on success or false if filter doesn't exist.

See Also

Source: reference/filter/functions/filter-id.xml · from the official PHP manual (php/doc-en)