mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
113 lines
4.7 KiB
HTML
113 lines
4.7 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>Returns the FDF document as a string</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.fdf-save-string" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">fdf_save_string</h1>
|
|
<p class="verinfo">(PHP 4 >= 4.3.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">fdf_save_string</span> — <span class="dc-title">Returns the FDF document as a string</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.fdf-save-string-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>fdf_save_string</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$fdf_document</code></span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Returns the FDF document as a string.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.fdf-save-string-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">fdf_document</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The FDF document handle, returned by <span class="function"><a href="fdf_create.html" class="function">fdf_create()</a></span>,
|
|
<span class="function"><a href="fdf_open.html" class="function">fdf_open()</a></span> or <span class="function"><a href="fdf_open_string.html" class="function">fdf_open_string()</a></span>.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.fdf-save-string-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Returns the document as a string, or <strong><code>FALSE</code></strong> on error.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 examples" id="refsect1-function.fdf-save-string-examples">
|
|
<h3 class="title">范例</h3>
|
|
<p class="para">
|
|
<div class="example" id="example-4155">
|
|
<p><strong>Example #1 Retrieving FDF as a string</strong></p>
|
|
<div class="example-contents">
|
|
<div class="phpcode"><pre><span style="color: #000000">
|
|
<span style="color: #0000BB"><?php<br />$fdf </span><span style="color: #007700">= </span><span style="color: #0000BB">fdf_create</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">fdf_set_value</span><span style="color: #007700">(</span><span style="color: #0000BB">$fdf</span><span style="color: #007700">, </span><span style="color: #DD0000">"foo"</span><span style="color: #007700">, </span><span style="color: #DD0000">"bar"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$str </span><span style="color: #007700">= </span><span style="color: #0000BB">fdf_save_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$fdf</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">fdf_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$fdf</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$str</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span>
|
|
</span>
|
|
</pre></div>
|
|
</div>
|
|
|
|
<div class="example-contents"><p>以上例程会输出:</p></div>
|
|
<div class="example-contents screen">
|
|
<div class="cdata"><pre>
|
|
%FDF-1.2
|
|
%âãÏÓ
|
|
1 0 obj
|
|
<<
|
|
/FDF << /Fields 2 0 R >>
|
|
>>
|
|
endobj
|
|
2 0 obj
|
|
[
|
|
<< /T (foo)/V (bar)>>
|
|
]
|
|
endobj
|
|
trailer
|
|
<<
|
|
/Root 1 0 R
|
|
|
|
>>
|
|
%%EOF
|
|
</pre></div>
|
|
</div>
|
|
</div>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.fdf-save-string-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<p class="para">
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="fdf_open_string.html" class="function" rel="rdfs-seeAlso">fdf_open_string()</a> - Read a FDF document from a string</span></li>
|
|
<li class="member"><span class="function"><a href="fdf_close.html" class="function" rel="rdfs-seeAlso">fdf_close()</a> - Close an FDF document</span></li>
|
|
<li class="member"><span class="function"><a href="fdf_create.html" class="function" rel="rdfs-seeAlso">fdf_create()</a> - Create a new FDF document</span></li>
|
|
<li class="member"><span class="function"><a href="fdf_save.html" class="function" rel="rdfs-seeAlso">fdf_save()</a> - Save a FDF document</span></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |