<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.filter.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.filter-id.php',
    1 => 'filter_id',
    2 => '返回与某个特定名称的过滤器相关联的id',
  ),
  'up' => 
  array (
    0 => 'ref.filter.php',
    1 => '过滤器函数',
  ),
  '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' => 'zh',
    '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);

?>
<div id="function.filter-id" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">filter_id</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.2.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">filter_id</span> &mdash; <span class="dc-title">返回与某个特定名称的过滤器相关联的id</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.filter-id-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>filter_id</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>


 </div>

 <div class="refsect1 parameters" id="refsect1-function.filter-id-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">name</code></dt>
    <dd>
     <p class="para">
      待获取的过滤器名称。
     </p>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.filter-id-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   如果获取成功则返回过滤器 id，如果过滤器不存在则返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.filter-id-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.filter-list.php" class="function" rel="rdfs-seeAlso">filter_list()</a> - 返回所支持的过滤器列表</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>