reference/strings/functions/quoted-printable-encode.xml
6330e4d73192c49a6867c6bbc3cbf09d63a1e36a
...
...
@@ -10,7 +10,7 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>quoted_printable_encode</methodname>
13
-
<methodparam><type>string</type><parameter>str</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Returns a quoted printable string created according to <link
...
...
@@ -27,7 +27,7 @@
27
27
<para>
28
28
<variablelist>
29
29
<varlistentry>
30
-
<term><parameter>str</parameter></term>
30
+
<term><parameter>string</parameter></term>
31
31
<listitem>
32
32
<para>
33
33
The input string.
...
...
@@ -45,6 +45,33 @@
45
45
</para>
46
46
</refsect1>
47
47

48
+
<refsect1 role="examples">
49
+
&reftitle.examples;
50
+
<para>
51
+
<example>
52
+
<title><function>quoted_printable_encode</function> example</title>
53
+
<programlisting role="php">
54
+
<![CDATA[
55
+
<?php
56
+

57
+
$encoded = quoted_printable_encode('Möchten Sie ein paar Äpfel?');
58
+

59
+
var_dump($encoded);
60
+
var_dump(quoted_printable_decode($encoded));
61
+
?>
62
+
]]>
63
+
</programlisting>
64
+
&example.outputs;
65
+
<screen>
66
+
<![CDATA[
67
+
string(37) "M=C3=B6chten Sie ein paar =C3=84pfel?"
68
+
string(29) "Möchten Sie ein paar Äpfel?"
69
+
]]>
70
+
</screen>
71
+
</example>
72
+
</para>
73
+
</refsect1>
74
+

48
75
<refsect1 role="seealso">
49
76
&reftitle.seealso;
50
77
<para>
...
...
@@ -56,7 +83,6 @@
56
83
</refsect1>
57
84

58
85
</refentry>
59
-

60
86
<!-- Keep this comment at the end of the file
61
87
Local variables:
62
88
mode: sgml
63
89