array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.filter-id.php', 1 => 'filter_id', 2 => 'Returns the filter ID belonging to a named filter', ), 'up' => array ( 0 => 'ref.filter.php', 1 => 'Filter Functions', ), 'prev' => array ( 0 => 'function.filter-has-var.php', 1 => 'filter_has_var', ), 'next' => array ( 0 => 'function.filter-input.php', 1 => 'filter_input', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/filter/functions/filter-id.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

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