PHP filter_id() Function

filter_id — Returns the filter ID belonging to a named filter.ID of a filter on success or FALSE if filter doesn't exist.

int filter_id ( string $filtername )

Example -

ParameterDescription
filternameThe filter name to get the id from