From b4d08dab757192237c0781beab048375c1008f69 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Tue, 23 Dec 2003 09:56:57 +0000 Subject: [PATCH] - Remove around . - Replace all within to git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@147242 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/iconv-mime-decode-headers.xml | 46 ++++++++----------- .../iconv/functions/iconv-mime-decode.xml | 21 ++++----- .../iconv/functions/iconv-mime-encode.xml | 16 +++---- 3 files changed, 34 insertions(+), 49 deletions(-) diff --git a/reference/iconv/functions/iconv-mime-decode-headers.xml b/reference/iconv/functions/iconv-mime-decode-headers.xml index b14328338a..ec27899660 100644 --- a/reference/iconv/functions/iconv-mime-decode-headers.xml +++ b/reference/iconv/functions/iconv-mime-decode-headers.xml @@ -1,5 +1,5 @@ - + iconv_mime_decode_headers @@ -79,19 +79,17 @@ will be used. - - - <function>iconv_mime_decode_function</function> example - - + <function>iconv_mime_decode_function</function> example + +<?php +$headers_string = <<<EOF Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?= To: example@example.com Date: Thu, 1 Jan 1970 00:00:00 +0000 -Message-Id: +Message-Id: <example@example.com> Received: from localhost (localhost [127.0.0.1]) by localhost - with SMTP id example for ; + 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); -?> -]]> +?> - + The output of this script should look like: - + - Prüfung Prüfung - [To] => example@example.com - [Date] => Thu, 1 Jan 1970 00:00:00 +0000 - [Message-Id] => - [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 ; 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 ) ) -]]> - - - + + See also iconv_mime_decode, diff --git a/reference/iconv/functions/iconv-mime-decode.xml b/reference/iconv/functions/iconv-mime-decode.xml index 980911331e..cb16682cee 100644 --- a/reference/iconv/functions/iconv-mime-decode.xml +++ b/reference/iconv/functions/iconv-mime-decode.xml @@ -1,5 +1,5 @@ - + @@ -69,21 +69,16 @@ will be used. - - - <function>iconv_mime_decode</function> example - - + <function>iconv_mime_decode</function> example + +>?php // This yields "Subject: Prüfung Prüfung" echo iconv_mime_decode("Subject: =?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?=", 0, "ISO-8859-1"); -?> -]]> - - - - +?< + + See also iconv_mime_decode_headers, imap_base64_decode, diff --git a/reference/iconv/functions/iconv-mime-encode.xml b/reference/iconv/functions/iconv-mime-encode.xml index 2debc89ec1..ceb56ac823 100644 --- a/reference/iconv/functions/iconv-mime-encode.xml +++ b/reference/iconv/functions/iconv-mime-encode.xml @@ -1,5 +1,5 @@ - + @@ -121,12 +121,10 @@ Subject: =?ISO-8859-1?Q?Pr=FCfung_f=FCr?= Entwerfen von einer MIME kopfzeile - - + <function>iconv_mime_encode</function> example: - "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); -?> -]]> - - - +?< + + See also imap_base64_encode,