uTools-Manuals/docs/php/ob_tidyhandler.html
2019-04-08 23:22:26 +08:00

107 lines
3.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>ob_start callback function to repair the buffer</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.ob-tidyhandler" class="refentry">
<div class="refnamediv">
<h1 class="refname">ob_tidyhandler</h1>
<p class="verinfo">(PHP 5, PHP 7)</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">string</span> <code class="parameter">$input</code></span>
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$mode</code></span>
] ) : <span class="type">string</span></div>
<p class="para rdfs-comment">
Callback function for <span class="function"><a href="ob_start.html" 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-4872">
<p><strong>Example #1 <span class="function"><strong>ob_tidyhandler()</strong></span> example</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><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&nbsp;</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>
</pre></div>
</div>
<div class="example-contents"><p>以上例程会输出:</p></div>
<div class="example-contents screen">
<div class="cdata"><pre>
&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 class="member"><span class="function"><a href="ob_start.html" class="function" rel="rdfs-seeAlso">ob_start()</a> - 打开输出控制缓冲</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>