位置: 编程技术 - 正文
推荐整理分享PHP:iconv_mime_decode()的用法_iconv函数,希望有所帮助,仅作参考,欢迎阅读内容。
文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!
(PHP 5)
iconv_mime_decode — Decodes a MIME header field
说明 string iconv_mime_decode ( string $encoded_header [, int $mode = 0 [, string $charset = ini_get("iconv.internal_encoding") ]] )Decodes a MIME header field.
参数encoded_header
The encoded header, as a string.
modemode determines the behaviour in the event iconv_mime_decode() encounters a malformed MIME header field. You can specify any combination of the following bitmasks. Bitmasks acceptable to iconv_mime_decode() Value Constant Description 1 ICONV_MIME_DECODE_STRICT If set, the given header is decoded in full conformance with the standards defined in »RFC. This option is disabled by default because there are a lot of broken mail user agents that dont follow the specification and dont produce correct MIME headers. 2 ICONV_MIME_DECODE_CONTINUE_ON_ERROR If set, iconv_mime_decode_headers() attempts to ignore any grammatical errors and continue to process a given header.
charsetThe optional charset parameter specifies the character set to represent the result by. If omitted, iconv.internal_encoding will be used.
返回值Returns a decoded MIME field on success, or FALSE if an error occurs during the decoding.
范例
Example #1 iconv_mime_decode() example
<?php//Thisyields"Subject:PrüfungPrüfung"echoiconv_mime_decode("Subject:=?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?=",0,"ISO--1");?> 参见iconv_mime_decode_headers() - 一次性解码多个 MIME 头字段 mb_decode_mimeheader() - 解码 MIME 头字段中的字符串 imap_mime_header_decode() - Decode MIME header elements imap_base() - Decode BASE encoded text imap_qprint() - Convert a quoted-printable string to an 8 bit string
PHP:iconv_mime_decode_headers()的用法_iconv函数 iconv_mime_decode_headers(PHP5)iconv_mime_decode_headers一次性解码多个MIME头字段说明arrayiconv_mime_decode_headers(string$encoded_headers[,int$mode=0[,string$charset=ini_get(iconv.internal
PHP:unlink()的用法_Filesystem函数 unlink(PHP4,PHP5)unlink删除文件说明boolunlink(string$filename[,resource$context])删除filename。和UnixC的unlink()函数相似。发生错误时会产生一个E_WARNING级别的错误。参
PHP:unlink()的用法_Filesystem函数 unlink(PHP4,PHP5)unlink删除文件说明boolunlink(string$filename[,resource$context])删除filename。和UnixC的unlink()函数相似。发生错误时会产生一个E_WARNING级别的错误。参
标签: PHP:iconv_mime_decode()的用法_iconv函数
本文链接地址:https://www.jiuchutong.com/biancheng/285163.html 转载请保留说明!友情链接: 武汉网站建设