1
0
mirror of https://github.com/php/doc-zh.git synced 2026-04-28 02:33:12 +02:00
Files
魔王卷子 79e86c387c Update string (#491)
* Update quoted-printable-encode.xml

* Update htmlspecialchars-decode.xml

* Update str-repeat.xml

* Update substr-replace.xml

* Update levenshtein.xml

* Update utf8-decode.xml

* Update htmlspecialchars-decode.xml

* Update levenshtein.xml

* Update substr-replace.xml

* Update utf8-decode.xml
2022-11-22 12:49:24 +08:00

107 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 6330e4d73192c49a6867c6bbc3cbf09d63a1e36a Maintainer: zhoumengkang Status: ready -->
<!-- CREDITS: her-cat, mowangjuanzi -->
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.quoted-printable-encode">
<refnamediv>
<refname>quoted_printable_encode</refname>
<refpurpose>将 8-bit 字符串转换成 quoted-printable 字符串</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>quoted_printable_encode</methodname>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
</methodsynopsis>
<para>
返回 quoted-printable 格式的字符,该格式由 <link xlink:href="&url.rfc;2045">RFC2045</link> 6.7.章节里制定。
</para>
<para>
该函数与 <function>imap_8bit</function> 函数十分相似,不同的是该函数不需要 IMAP 模块就能运行。
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>string</parameter></term>
<listitem>
<para>
输入的字符串。
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
返回编码之后的字符串。
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>quoted_printable_encode</function> 示例</title>
<programlisting role="php">
<![CDATA[
<?php
$encoded = quoted_printable_encode('Möchten Sie ein paar Äpfel?');
var_dump($encoded);
var_dump(quoted_printable_decode($encoded));
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
string(37) "M=C3=B6chten Sie ein paar =C3=84pfel?"
string(29) "Möchten Sie ein paar Äpfel?"
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>quoted_printable_decode</function></member>
<member><function>iconv_mime_encode</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->