<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/outcontrol.user-level-output-buffers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'outcontrol.output-handlers.php',
    1 => 'Output Handlers',
    2 => 'Output Handlers',
  ),
  'up' => 
  array (
    0 => 'outcontrol.user-level-output-buffers.php',
    1 => 'User-Level Output Buffers',
  ),
  'prev' => 
  array (
    0 => 'outcontrol.operations-on-buffers.php',
    1 => 'Operations Allowed On Buffers',
  ),
  'next' => 
  array (
    0 => 'outcontrol.working-with-output-handlers.php',
    1 => 'Working With Output Handlers',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/outcontrol/user-level-output-buffers.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="outcontrol.output-handlers" class="section">
  <h2 class="title">Output Handlers</h2>
  <p class="para">
   Output handlers are <span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span>s associated with output buffers
   that are invoked by calling <span class="function"><a href="function.ob-clean.php" class="function">ob_clean()</a></span>,
   <span class="function"><a href="function.ob-flush.php" class="function">ob_flush()</a></span>, <span class="function"><a href="function.ob-end-flush.php" class="function">ob_end_flush()</a></span>,
   <span class="function"><a href="function.ob-get-flush.php" class="function">ob_get_flush()</a></span>, <span class="function"><a href="function.ob-end-clean.php" class="function">ob_end_clean()</a></span>,
   <span class="function"><a href="function.ob-get-clean.php" class="function">ob_get_clean()</a></span> or during PHP&#039;s shutdown process.
  </p>
  <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
   <span class="simpara">
    The shutdown process will flush the return value of the handler.
   </span>
  </p></blockquote>
  <p class="para">
   If omitted or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> when starting the output buffer
   the internal <code class="literal">&quot;default output handler&quot;</code> will be used
   which returns the unmodified contents of the buffer when invoked.
   Output handlers can be used to return a modified version
   of the buffer&#039;s contents and/or have side-effects (e.g. send headers).
  </p>
  <p class="para">
   PHP comes with two internal output handlers:
   <code class="literal">&quot;default output handler&quot;</code>
   and <code class="literal">&quot;URL-Rewriter&quot;</code> (which is integrated into
   its own output buffer and only up to two instances of it can be started).
  </p>
  <p class="para">
   The bundled extensions include four additional output handlers:
   <span class="function"><a href="function.mb-output-handler.php" class="function">mb_output_handler()</a></span>, <span class="function"><a href="function.ob-gzhandler.php" class="function">ob_gzhandler()</a></span>,
   <span class="function"><a href="function.ob-iconv-handler.php" class="function">ob_iconv_handler()</a></span>, <span class="function"><a href="function.ob-tidyhandler.php" class="function">ob_tidyhandler()</a></span>.
  </p>
 </div><?php manual_footer($setup); ?>