<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.tidy.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.ob-tidyhandler.php',
    1 => 'ob_tidyhandler',
    2 => 'ob_start callback function to repair the buffer',
  ),
  'up' => 
  array (
    0 => 'ref.tidy.php',
    1 => 'Tidy 函数',
  ),
  'prev' => 
  array (
    0 => 'ref.tidy.php',
    1 => 'Tidy 函数',
  ),
  'next' => 
  array (
    0 => 'function.tidy-access-count.php',
    1 => 'tidy_access_count',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/tidy/functions/ob-tidyhandler.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ob-tidyhandler" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ob_tidyhandler</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ob_tidyhandler</span> &mdash; <span class="dc-title">ob_start callback function to repair the buffer</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.ob-tidyhandler-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ob_tidyhandler</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$input</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$mode</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Callback function for <span class="function"><a href="function.ob-start.php" class="function">ob_start()</a></span> to repair the buffer.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.ob-tidyhandler-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">input</code></dt>
     <dd>
      <p class="para">
       The buffer.
      </p>
     </dd>
    
    
     <dt><code class="parameter">mode</code></dt>
     <dd>
      <p class="para">
       The buffer mode.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.ob-tidyhandler-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the modified buffer.
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.ob-tidyhandler-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>示例 #1 <span class="function"><strong>ob_tidyhandler()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />ob_start</span><span style="color: #007700">(</span><span style="color: #DD0000">'ob_tidyhandler'</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #DD0000">'&lt;p&gt;test&lt;/i&gt;'</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>以上示例会输出：</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;test&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
</div>
    </div>
   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.ob-tidyhandler-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ob-start.php" class="function" rel="rdfs-seeAlso">ob_start()</a> - 打开输出控制缓冲</span></li>
   </ul>
  </p>
 </div>

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