reference/strings/functions/quoted-printable-encode.xml
6330e4d73192c49a6867c6bbc3cbf09d63a1e36a
...
...
@@ -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>
51
78