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

112 lines
3.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>Recode a string according to a recode request</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.recode-string" class="refentry">
<div class="refnamediv">
<h1 class="refname">recode_string</h1>
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">recode_string</span> &mdash; <span class="dc-title">Recode a string according to a recode request</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.recode-string-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>recode_string</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$request</code></span>
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$string</code></span>
) : <span class="type">string</span></div>
<p class="para rdfs-comment">
Recode the string <code class="parameter">string</code> according to
the recode request <code class="parameter">request</code>.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.recode-string-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">request</code></dt>
<dd>
<p class="para">
The desired recode request type
</p>
</dd>
<dt>
<code class="parameter">string</code></dt>
<dd>
<p class="para">
The <span class="type"><a href="language.types.string.html" class="type string">string</a></span> to be recoded
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.recode-string-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
Returns the recoded <span class="type"><a href="language.types.string.html" class="type string">string</a></span> or <strong><code>FALSE</code></strong>, if unable to
perform the recode request.
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.recode-string-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-3215">
<p><strong>Example #1 Basic <span class="function"><strong>recode_string()</strong></span> example</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">recode_string</span><span style="color: #007700">(</span><span style="color: #DD0000">"us..flat"</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"The&nbsp;following&nbsp;character&nbsp;has&nbsp;a&nbsp;diacritical&nbsp;mark:&nbsp;á"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
</div>
<div class="refsect1 notes" id="refsect1-function.recode-string-notes">
<h3 class="title">注释</h3>
<p class="para">
A simple recode request may be &quot;lat1..iso646-de&quot;.
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.recode-string-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member">
The GNU Recode documentation of your installation for detailed
instructions about recode requests.
</li>
</ul>
</p>
</div>
</div></div></div></body></html>