位置: 编程技术 - 正文

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函数

  • 哪些东西要征收消费税
  • 投资性房地产在建
  • 加计扣除产生的滞纳金
  • 资产计提折旧的科目
  • 住宿费进项税分录
  • 中小企业员工出去创业的例子
  • 汽车减税
  • 税务变更需要哪些材料
  • 可供出售金融资产和交易性金融资产
  • 超过保质期存储时间或变质的食品应该怎样处理
  • 公司对项目管理方式
  • 地产企业不动产登记入哪个科目?
  • 材料未验收入库属于哪个科目
  • 财务报表层次重大错报风险增大了认定层次
  • 工资做账原始凭证是什么
  • 劳务派遣企业差额扣除占比过高怎么办
  • 什么时候抵扣增值税
  • 跨年度错账更正方法
  • 车船税的减免税
  • 股票质押期间收益归谁
  • 三星笔记本预装系统
  • 硬盘的日常维护需要做到什么?
  • windows10无线网卡怎么连接无线网
  • 惠普hp笔记本电脑怎么开机
  • 企业所得税征收标准
  • dhcp存在哪些安全隐患
  • 方正书版10.0教程
  • 提示语是什么意思?
  • php内容修改
  • 深度学习和日常代码中遇到的报错汇总及解决方案,持续更新中。。。。
  • 软件入无形资产还是长期待摊费用了
  • 报错专业了可不可以改
  • 双色球python算法
  • 电子承兑汇票是什么时候开始的
  • 待提出票据交换及转汇款怎么做账
  • 什么是大语言模型(LLM)?
  • win11开机后开始菜单没反应
  • 谷歌浏览器无法安装
  • vant ui
  • 代理费与代理运费的区别
  • 个体户办营业执照有什么优点和缺点
  • 运输发票抵扣税率是多少
  • dedecms v6
  • 专利银行汇款操作步骤
  • 应收票据贴现的实收金额一定小于票据面值
  • 财务报表编制要求包含
  • 个体户需要税务报道不
  • db2入门
  • linux大版本升级
  • 车辆购置税相关法律规定
  • 小公司没有财务软件怎么手工记账
  • 营业利润净利润利润总额的区别
  • 外单位替本单位缴纳社保
  • 资本公积转为实收资本会计科目
  • 公司冲账发票做账流程
  • 融资租赁与按揭的区别
  • 个体工商户不缴纳印花税吗
  • 佣金支出和手续费一样吗
  • 当期应纳税额是什么意思
  • 未确认融资费用怎么算
  • 子公司的取得方式
  • Win10如何禁止显卡驱动自动更新
  • 服务器双系统怎么安装
  • win10自带microsoft office怎么用
  • excel的基本数据类型
  • python数据可视化课后题答案
  • linux系统搜索文件内容
  • pygame csdn
  • 编写高质量代码改善JAVA程序的151个建议
  • 三分钟带你玩转灭火器
  • javascript对象和方法
  • Activity与Theme
  • javascript基本语句
  • 地税局纪检组长黄斌简历
  • 天津税务局投诉举报咨询电话
  • 税务局赵昭
  • 怎么申请冬季取暖补贴
  • 税控盘时钟异常怎么办
  • 湖南国家电子税务局企业所得税申报进不去
  • 马来西亚进口货物的标签要求
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设