mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Remove <para> around <example>.
- Replace all <para> within <example> to <simpara> git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147242 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
dcaa2b059a
commit
b4d08dab75
3 changed files with 34 additions and 49 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<refentry id="function.iconv-mime-decode-headers">
|
||||
<refnamediv>
|
||||
<refname>iconv_mime_decode_headers</refname>
|
||||
|
@ -79,19 +79,17 @@
|
|||
will be used.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<example>
|
||||
<title><function>iconv_mime_decode_function</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$headers_string = <<<EOF
|
||||
<example>
|
||||
<title><function>iconv_mime_decode_function</function> example</title>
|
||||
<programlisting role="php">
|
||||
<?php
|
||||
$headers_string = <<<EOF
|
||||
Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?=
|
||||
To: example@example.com
|
||||
Date: Thu, 1 Jan 1970 00:00:00 +0000
|
||||
Message-Id: <example@example.com>
|
||||
Message-Id: <example@example.com>
|
||||
Received: from localhost (localhost [127.0.0.1]) by localhost
|
||||
with SMTP id example for <example@example.com>;
|
||||
with SMTP id example for <example@example.com>
|
||||
Thu, 1 Jan 1970 00:00:00 +0000 (UTC)
|
||||
(envelope-from example-return-0000-example=example.com@example.com)
|
||||
Received: (qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000
|
||||
|
@ -100,31 +98,27 @@ EOF;
|
|||
|
||||
$headers = iconv_mime_decode_headers($headers_string, 0, "ISO-8859-1");
|
||||
print_r($headers);
|
||||
?>
|
||||
]]>
|
||||
?>
|
||||
</programlisting>
|
||||
<para>
|
||||
<simpara>
|
||||
The output of this script should look like:
|
||||
</para>
|
||||
</simpara>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Array
|
||||
(
|
||||
[Subject] => Prüfung Prüfung
|
||||
[To] => example@example.com
|
||||
[Date] => Thu, 1 Jan 1970 00:00:00 +0000
|
||||
[Message-Id] => <example@example.com>
|
||||
[Received] => Array
|
||||
[Subject] => Prüfung Prüfung
|
||||
[To] => example@example.com
|
||||
[Date] => Thu, 1 Jan 1970 00:00:00 +0000
|
||||
[Message-Id] => <example@example.com>
|
||||
[Received] => Array
|
||||
(
|
||||
[0] => from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for <example@example.com>; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)
|
||||
[1] => (qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000
|
||||
[0] => from localhost (localhost [127.0.0.1]) by localhost with SMTP id example for <example@example.com>; Thu, 1 Jan 1970 00:00:00 +0000 (UTC) (envelope-from example-return-0000-example=example.com@example.com)
|
||||
[1] => (qmail 0 invoked by uid 65534); 1 Thu 2003 00:00:00 +0000
|
||||
)
|
||||
|
||||
)
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</para>
|
||||
</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
See also <function>iconv_mime_decode</function>,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. -->
|
||||
<refentry id="function.iconv-mime-decode">
|
||||
<refnamediv>
|
||||
|
@ -69,21 +69,16 @@
|
|||
will be used.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<example>
|
||||
<title><function>iconv_mime_decode</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
<example>
|
||||
<title><function>iconv_mime_decode</function> example</title>
|
||||
<programlisting role="php">
|
||||
>?php
|
||||
// This yields "Subject: Prüfung Prüfung"
|
||||
echo iconv_mime_decode("Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?=",
|
||||
0, "ISO-8859-1");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
|
||||
?<
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
See also <function>iconv_mime_decode_headers</function>,
|
||||
<function>imap_base64_decode</function>,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. -->
|
||||
<refentry id="function.iconv-mime-encode">
|
||||
<refnamediv>
|
||||
|
@ -121,12 +121,10 @@ Subject: =?ISO-8859-1?Q?Pr=FCfung_f=FCr?= Entwerfen von einer MIME kopfzeile
|
|||
</table>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<example>
|
||||
<example>
|
||||
<title><function>iconv_mime_encode</function> example:</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
>?php
|
||||
$preferences = array(
|
||||
"input-charset" => "ISO-8859-1",
|
||||
"output-charset" => "UTF-8",
|
||||
|
@ -140,11 +138,9 @@ echo iconv_mime_encode("Subject", "Prüfung Prüfung", $preferences);
|
|||
$preferences["scheme"] = "B";
|
||||
// This yields "Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?="
|
||||
echo iconv_mime_encode("Subject", "Prüfung Prüfung", $preferences);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
?<
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
See also <function>imap_base64_encode</function>,
|
||||
|
|
Loading…
Reference in a new issue