位置: 编程技术 - 正文

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

  • 住宿费抵扣进项税怎么报税
  • 房产企业因资金问题退市
  • 手工账写错字怎么改呢
  • 个人转让商铺个人所得税核定征收
  • 无形资产和固定资产的折旧
  • 进项税抵扣销项税
  • 税收返还怎么做会计分录
  • 工业企业用电是收入的几倍
  • 委托贷款对方单位不还
  • 已抵扣的进项税发票开具红字发票信息表
  • 个人股权转让申报表
  • 中小企业固定资产管理存在的问题
  • 小规模核定征收税率
  • 商品盘点溢余短缺的核算方法有哪些?
  • 公司关门账上的盈余公积怎么处理?
  • 商品折扣与折让属于销售费用吗
  • 今年调整上年收入的政策
  • 金税盘发票份数没有显示
  • 汇兑损益怎么入账
  • 酒精是否属于消费税征税范围
  • 租入房屋修缮费用谁承担
  • 残疾人就业保障金是什么意思啊
  • 后裔王者荣耀台词大全
  • 发生股权转让时怎么处理
  • 工商年报单位缴费基数怎么算出来
  • 固定资产资产评估
  • 预收和应收怎么转换
  • 一个药厂能够生产药品的三个前提条件
  • 以固定资产换入无形资产
  • 厂房修缮
  • 无形资产累计摊销借贷方向
  • js表单验证代码
  • 超限量发票申请下来后怎么操作
  • 车船税发票丢失
  • SE注意力机制加在什么位置
  • 白酒赠送消费税计算
  • 职工教育经费是不是教育费附加
  • seaborn库的特点
  • 定时任务java
  • chatteing
  • 哪些合同必须签订书面合同
  • 开票和不开票的销项税额怎么算
  • 什么样的资产可以执行
  • python项目开发案例集锦pdf百度网盘
  • mongodb replica set 配置高性能多服务器详解
  • dede插件
  • 销售费用工资是什么科目
  • 事业单位人员收受财物
  • 电子承兑提示付款提前几天
  • 税控服务费属于增值税减免费?
  • 发票先认证后入账怎么做账
  • 工会经费通过应交税费核算吗
  • 投资收益是总账还是明细账
  • 固定资产残值怎么做账务处理
  • 契税发票错了能作废吗
  • 会计软件入什么科目
  • 其他债权投资减值影响账面价值吗
  • 电子商务还会继续发展吗
  • 长期股权投资是什么类的科目
  • sql常用语句大全 实例
  • 电脑bios找不到硬盘怎么办
  • windowsserver2008无线网不能连接
  • linux咋用
  • SmoothView.exe - SmoothView是什么进程
  • 写出linux安装的详细步骤
  • win7桌面整理软件
  • scureapp.exe - scureapp是什么进程 有什么用
  • 微软最新新闻
  • nodejs中的事件循环的执行顺序
  • 每天看30分钟手机可以吗
  • 我的自定义计划怎么删除
  • 百度关键字搜索员是干嘛的
  • jquery 右键菜单
  • java script
  • jQuery UI结合Ajax创建可定制的Web界面
  • js 输入
  • 东莞国家税务局横沥分局
  • 通用机打发票明细怎么导出电子版
  • 土地增值税分期清算条件?
  • 城市维护建设税减半征收政策
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设