php / 8.1.5 / function.filter-id.html /

filter_id

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

filter_idReturns 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

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.filter-id.php