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

96 lines
3.9 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>Read a FDF document from a string</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.fdf-open-string" class="refentry">
<div class="refnamediv">
<h1 class="refname">fdf_open_string</h1>
<p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">fdf_open_string</span> &mdash; <span class="dc-title">Read a FDF document from a string</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.fdf-open-string-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>fdf_open_string</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$fdf_data</code></span>
) : <span class="type">resource</span></div>
<p class="para rdfs-comment">
Reads form data from a string.
</p>
<p class="para">
You can use <span class="function"><strong>fdf_open_string()</strong></span> together with
<var class="varname"><var class="varname">$HTTP_FDF_DATA</var></var> to process FDF form input from a remote
client.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.fdf-open-string-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">fdf_data</code></dt>
<dd>
<p class="para">
The data as returned from a PDF form or created using
<span class="function"><a href="fdf_create.html" class="function">fdf_create()</a></span> and
<span class="function"><a href="fdf_save_string.html" class="function">fdf_save_string()</a></span>.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.fdf-open-string-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns a FDF document handle, or <strong><code>FALSE</code></strong> on error.
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.fdf-open-string-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-4153">
<p><strong>Example #1 Accessing the form data</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$fdf&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">fdf_open_string</span><span style="color: #007700">(</span><span style="color: #0000BB">$HTTP_FDF_DATA</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">/*&nbsp;...&nbsp;*/<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 /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.fdf-open-string-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="fdf_open.html" class="function" rel="rdfs-seeAlso">fdf_open()</a> - Open a FDF document</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_string.html" class="function" rel="rdfs-seeAlso">fdf_save_string()</a> - Returns the FDF document as a string</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>