<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'filters.php',
    1 => 'List of Available Filters',
    2 => 'List of Available Filters',
  ),
  'up' => 
  array (
    0 => 'appendices.php',
    1 => 'Appendices',
  ),
  'prev' => 
  array (
    0 => 'resource.php',
    1 => 'List of Resource Types',
  ),
  'next' => 
  array (
    0 => 'filters.string.php',
    1 => 'String Filters',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    '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">List of Available Filters</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_appendix"><li><a href="filters.string.php">String Filters</a></li><li><a href="filters.convert.php">Conversion Filters</a></li><li><a href="filters.compression.php">Compression Filters</a></li><li><a href="filters.encryption.php">Encryption Filters</a></li></ul>

 <p class="para">
  The following is a list of a few built-in stream filters for
  use with <span class="function"><a href="function.stream-filter-append.php" class="function">stream_filter_append()</a></span>.
  Your version of PHP may have more filters (or fewer) than those
  listed here.
 </p>

 <p class="para">
  It is worth noting a slight asymmetry between 
  <span class="function"><a href="function.stream-filter-append.php" class="function">stream_filter_append()</a></span>
  and <span class="function"><a href="function.stream-filter-prepend.php" class="function">stream_filter_prepend()</a></span>.  
  Every PHP stream contains a small <em>read buffer</em>
  where it stores blocks of data retrieved from the
  filesystem or other resource in order to process data
  in the most efficient manner.  As soon as data is pulled
  from the resource into the stream&#039;s internal buffer, it
  is immediately processed through any attached filters whether
  the PHP application is actually ready for the data or not.
  If data is sitting in the read buffer when a filter is 
  <em>appended</em>, this data will be immediately
  processed through that filter making the fact that it was
  sitting in the buffer seem transparent.  However, if data is
  sitting in the read buffer when a filter is 
  <em>prepended</em>, this data will <em>NOT</em>
  be processed through that filter.  It will instead wait until
  the next block of data is retrieved from the resource.
 </p>

 <p class="para">
  For a list of filters installed in your version of
  PHP use <span class="function"><a href="function.stream-get-filters.php" class="function">stream_get_filters()</a></span>.
 </p>

 

 

 

 

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