<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/appendices.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'filters.php',
    1 => '可用过滤器列表',
    2 => '可用过滤器列表',
  ),
  'up' => 
  array (
    0 => 'appendices.php',
    1 => '附录',
  ),
  'prev' => 
  array (
    0 => 'resource.php',
    1 => '资源类型列表',
  ),
  'next' => 
  array (
    0 => 'filters.string.php',
    1 => '字符串过滤器',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'appendices/filters.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/filters.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="filters" class="appendix">
 <h1 class="title">可用过滤器列表</h1>
<h2>目录</h2><ul class="chunklist chunklist_appendix"><li><a href="filters.string.php">字符串过滤器</a></li><li><a href="filters.convert.php">转换过滤器</a></li><li><a href="filters.compression.php">压缩过滤器</a></li><li><a href="filters.encryption.php">加密过滤器</a></li></ul>

 <p class="para">
  下面列出了用在 <span class="function"><a href="function.stream-filter-append.php" class="function">stream_filter_append()</a></span> 中的几个内置的流过滤器。用户的 PHP 版本中的过滤器也许比这里列出的更多（或更少）。
 </p>

 <p class="para">
  值得指出 <span class="function"><a href="function.stream-filter-append.php" class="function">stream_filter_append()</a></span> 与 <span class="function"><a href="function.stream-filter-prepend.php" class="function">stream_filter_prepend()</a></span> 之间有少许不平衡。每个 PHP
  流都含有一个小的<em>读取缓冲区</em>，它存储了来自文件系统或其它资源的几段数据以便更有效率地处理。数据一从资源进入流的内部缓冲区，立刻被附上的过滤器处理而不管
  PHP 程序是否真的已经准备好接收数据。当过滤器是 <em>appended</em> 时如果数据等待在读取缓冲区，数据将被立即通过过滤器处理，使其效果看上去是透明的。然而当过滤器是 
  <em>prepended</em> 时如果数据等待在读取缓冲区，数据将<em>不会</em>被该过滤器处理。该数据将会等到从资源取得下一段数据后才会被处理。
 </p>

 <p class="para"> 
  用 <span class="function"><a href="function.stream-get-filters.php" class="function">stream_get_filters()</a></span> 来列出 PHP 中已安装的过滤器。
 </p>

 

  

  

  

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