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

76 lines
3.2 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>Flush current buffer</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.xmlwriter-flush" class="refentry">
<div class="refnamediv">
<h1 class="refname">XMLWriter::flush</h1>
<h1 class="refname">xmlwriter_flush</h1>
<p class="verinfo">(PHP 5 &gt;= 5.1.2, PHP 7, PECL xmlwriter &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">XMLWriter::flush</span> -- <span class="refname">xmlwriter_flush</span> &mdash; <span class="dc-title">Flush current buffer</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.xmlwriter-flush-description">
<h3 class="title">说明</h3>
<p class="para">面向对象风格</p>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>XMLWriter::flush</strong></span>
([ <span class="methodparam"><span class="type">bool</span> <code class="parameter">$empty</code><span class="initializer"> = <strong><code>TRUE</code></strong></span></span>
] ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>
<p class="para rdfs-comment">过程化风格</p>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>xmlwriter_flush</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$xmlwriter</code></span>
[, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$empty</code><span class="initializer"> = <strong><code>TRUE</code></strong></span></span>
] ) : <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span></div>
<p class="para rdfs-comment">
Flushes the current buffer.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.xmlwriter-flush-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">
xmlwriter</code></dt>
<dd>
<p class="para">仅用于过程调用。被修改的 XMLWriter <span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>。此资源来自于对 <span class="function"><a href="xmlwriter_open_uri.html" class="function">xmlwriter_open_uri()</a></span>
<span class="function"><a href="xmlwriter_open_memory.html" class="function">xmlwriter_open_memory()</a></span> 的调用。</p></dd>
<dt>
<code class="parameter">empty</code></dt>
<dd>
<p class="para">
Whether to empty the buffer or not. Default is <strong><code>TRUE</code></strong>.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.xmlwriter-flush-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
If you opened the writer in memory, this function returns the generated XML buffer,
Else, if using URI, this function will write the buffer and return the number of
written bytes.
</p>
</div>
</div></div></div></body></html>