位置: 编程技术 - 正文

PHP:iconv_mime_encode()的用法_iconv函数

编辑:rootadmin
iconv_mime_encode

推荐整理分享PHP:iconv_mime_encode()的用法_iconv函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5)

iconv_mime_encode — Composes a MIME header field

说明 string iconv_mime_encode ( string $field_name , string $field_value [, array $preferences = NULL ] )

Composes and returns a string that represents a valid MIME header field, which looks like the following: In the above example, "Subject" is the field name and the portion that begins with "=?ISO--1?..." is the field value.

参数

field_name

The field name.

field_value PHP:iconv_mime_encode()的用法_iconv函数

The field value.

preferences

You can control the behaviour of iconv_mime_encode() by specifying an associative array that contains configuration items to the optional third parameter preferences. The items supported by iconv_mime_encode() are listed below. Note that item names are treated case-sensitive. Configuration items supported by iconv_mime_encode() Item Type Description Default value Example scheme string Specifies the method to encode a field value by. The value of this item may be either "B" or "Q", where "B" stands for base encoding scheme and "Q" stands for quoted-printable encoding scheme. B B input-charset string Specifies the character set in which the first parameter field_name and the second parameter field_value are presented. If not given, iconv_mime_encode() assumes those parameters are presented to it in the iconv.internal_encoding ini setting. iconv.internal_encoding ISO--1 output-charset string Specifies the character set to use to compose the MIME header. iconv.internal_encoding UTF-8 line-length integer Specifies the maximum length of the header lines. The resulting header is "folded" to a set of multiple lines in case the resulting header field would be longer than the value of this parameter, according to »RFC - Internet Message Format. If not given, the length will be limited to characters. line-break-chars string Specifies the sequence of characters to append to each line as an end-of-line sign when "folding" is performed on a long header field. If not given, this defaults to "rn" (CR LF). Note that this parameter is always treated as an ASCII string regardless of the value of input-charset. rn n

返回值

Returns an encoded MIME field on success, or FALSE if an error occurs during the encoding.

范例

Example #1 iconv_mime_encode() example

<?php$preferences=array("input-charset"=>"ISO--1","output-charset"=>"UTF-8","line-length"=>,"line-break-chars"=>"n");$preferences["scheme"]="Q";//Thisyields"Subject:=?UTF-8?Q?Pr=C3=BCfung=Pr=C3=BCfung?="echoiconv_mime_encode("Subject","PrüfungPrüfung",$preferences);$preferences["scheme"]="B";//Thisyields"Subject:=?UTF-8?B?UHLDvGZ1bmcgUHLDvGZ1bmc=?="echoiconv_mime_encode("Subject","PrüfungPrüfung",$preferences);?>

参见

imap_binary() - Convert an 8bit string to a base string mb_encode_mimeheader() - 为 MIME 头编码字符串 imap_8bit() - Convert an 8bit string to a quoted-printable string quoted_printable_encode() - 将 8-bit 字符串转换成 quoted-printable 字符串

PHP:iconv_strlen()的用法_iconv函数 iconv_strlen(PHP5)iconv_strlen返回字符串的字符数统计说明inticonv_strlen(string$str[,string$charset=ini_get(iconv.internal_encoding)])和strlen()不同的是,iconv_strlen()统计了给

PHP:iconv_get_encoding()的用法_iconv函数 iconv_get_encoding(PHP4=4.0.5,PHP5)iconv_get_encoding获取iconv扩展的内部配置变量说明mixediconv_get_encoding([string$type=all])获取iconv扩展的内部配置变量。参数type选项type

PHP:iconv_mime_decode()的用法_iconv函数 iconv_mime_decode(PHP5)iconv_mime_decodeDecodesaMIMEheaderfield说明stringiconv_mime_decode(string$encoded_header[,int$mode=0[,string$charset=ini_get(iconv.internal_encoding)]])DecodesaMIMEheaderfiel

标签: PHP:iconv_mime_encode()的用法_iconv函数

本文链接地址:https://www.jiuchutong.com/biancheng/285160.html 转载请保留说明!

上一篇:PHP:iconv_strpos()的用法_iconv函数

下一篇:PHP:iconv_strlen()的用法_iconv函数

  • 应收留抵税额退税款属于哪类科目
  • 所得税营业成本包括税金及附加吗
  • 不在经营范围内可以开票吗
  • 经济利益的流入一定是收入吗
  • 应交税费例子
  • 生产性资金是生产资料吗
  • 公司购买手机如何入账
  • 获取清算行行号失败
  • 防洪基金减免的会计分录怎么写?
  • 企业收到投资者以外币投入的资本应当采用什么折算
  • 股票回购后多久注销
  • 增值税2017年起征点
  • 发票一直报送中,开不了发票
  • 为什么非征期不允许汇总上传
  • 工资薪金总额包括职工福利费吗
  • 个人股权激励收入计入年度综合个人所得税吗
  • 交易性金融资产和长期股权投资的区别
  • 科技项目经费怎么申报
  • 评估资产没有发票和流水怎么办
  • 资源税计税依据含不含增值税
  • vue3 provide inject
  • 怎么光驱重装系统
  • centos只有lo
  • msp 什么意思
  • 自适应屏幕宽度
  • 金融资产包括哪三大类及会计科目
  • geeklink 极联科技
  • php throw
  • php操作json文件
  • uniapp components
  • 工资的会计账务处理
  • selenium python 教程
  • 购入固定资产的进项税额可以抵扣吗
  • 同一控制下企业合并和非同一控制下企业合并的区别
  • 申报个税是不是就必须交社保
  • 线程池中的一个线程执行完一个任务后
  • mongodb主备配置
  • 建筑公司计提企税怎么算
  • 计提的坏账准备计入什么科目
  • 工会会计固定基金
  • 土地增值税间接转让怎么算
  • 商业汇票贴现条件有哪些
  • 去年出口
  • 外购货物用于促销的账务处理
  • 向非关联企业捐赠现金会计分录
  • 实收资本(或股本)是什么意思
  • 其他应收款在借方怎么调账
  • 生产成本人工费结转
  • 发票跨年冲红怎么做账
  • 企业哪些部门
  • 水利建设税怎么做账
  • 公司向法人借款需要交税吗
  • 原材料可以不设明细吗?
  • 明年发票可以入到今年有什么惩罚
  • 结账时应当结出每个账户的期末余额对吗
  • 全面解析皮炎
  • 安装了windows
  • win7更改电脑设置在哪里
  • xp系统怎么把ie浏览器放到桌面
  • CentOS ip_conntrack: table full, dropping packet 的解决方法
  • mac如何快速复制文件
  • win10开机绿色
  • linux 请求
  • linux的防火墙配置文件
  • 基于linux的mplayer音乐播放器
  • win10隐藏图标不显示
  • win10周年纪念版
  • windows修复失败
  • jquery点击切换div
  • nodejs获取客户端ip地址
  • python pyo
  • vue3.0diff
  • Android 判断是否打开了微信
  • javascript含义
  • 浅谈一下新冠的好处
  • google年会
  • android中常用的布局是
  • 安卓 自动化app
  • 应纳税额减征额账务处理
  • 税率的分类有哪些
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设