<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'outcontrol.nesting-output-buffers.php',
    1 => 'Nesting Output Buffers',
    2 => 'Nesting Output Buffers',
  ),
  'up' => 
  array (
    0 => 'outcontrol.user-level-output-buffers.php',
    1 => 'User-Level Output Buffers',
  ),
  'prev' => 
  array (
    0 => 'outcontrol.what-output-is-buffered.php',
    1 => 'What Output Is Buffered?',
  ),
  'next' => 
  array (
    0 => 'outcontrol.buffer-size.php',
    1 => 'Buffer Size',
  ),
  '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.nesting-output-buffers" class="section">
  <h2 class="title">Nesting Output Buffers</h2>
  <p class="para">
   If there is an output buffer active when a new buffer is started,
   the new buffer will be nested inside the previously active buffer.
   The inner buffer will behave the same way regardless whether it is nested
   but output buffered by it will not be buffered by the outer buffer.
   Only output flushed by the inner buffer will be buffered by the outer buffer.
  </p>
  <p class="para">
   Most <code class="literal">ob_<span class="replaceable">*</span></code> functions only work
   with the active output buffer (the last one started)
   therefore only the active buffer can be flushed, cleaned and turned off.
   The functions that work with other buffers are
   <span class="function"><a href="function.ob-list-handlers.php" class="function">ob_list_handlers()</a></span>
   which returns the list of all output handlers in use
   and <span class="function"><a href="function.ob-get-status.php" class="function">ob_get_status()</a></span>
   which can return information on the active buffer only
   or on all buffers in use.
  </p>
  <p class="para">
   Calling <span class="function"><a href="function.ob-get-level.php" class="function">ob_get_level()</a></span>
   or <span class="function"><a href="function.ob-get-status.php" class="function">ob_get_status()</a></span> will return
   the nesting level of the active output buffer.
  </p>
  <div class="caution"><strong class="caution">Dikkat</strong>
   <p class="simpara">
    The value for identical levels between <span class="function"><a href="function.ob-get-level.php" class="function">ob_get_level()</a></span>
    and <span class="function"><a href="function.ob-get-status.php" class="function">ob_get_status()</a></span> is off by one.
    For <span class="function"><a href="function.ob-get-level.php" class="function">ob_get_level()</a></span>
    the first level is <code class="literal">1</code>,
    whereas for <span class="function"><a href="function.ob-get-status.php" class="function">ob_get_status()</a></span>
    the first level is <code class="literal">0</code>.
   </p>
  </div>
 </div><?php manual_footer($setup); ?>