位置: 编程技术 - 正文

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

  • 不予认定一般纳税人
  • 印花税什么时候开始计入税金及附加
  • 出口企业税负率计算公式
  • 清卡重用
  • 电力工程服务费计入什么科目
  • 销售费用有业务招待费餐费么
  • 零售化妆品交什么税种
  • 金蝶旗舰版如何反过账
  • 发票进项税额抵扣的最晚时间
  • 累计赡养老人专项扣除6000
  • 财务报表的资产负债表怎么填
  • 商品和服务税收分类编码
  • 减免50%的城建税分录怎么做?
  • 季度收取租金会计分录怎么写?
  • 事业单位其他应付款如何核销
  • 以前年度记错的费用怎么调整?
  • 公司研发阶段的产品领料怎么处理?
  • 企业购买劳保用品会计处理
  • 国税和地税要怎么合并
  • 民办非企业单位是私立还是公立
  • 收到银行承兑汇票计入什么科目
  • 工会经费由企业和职工共同负担吗
  • 农业免税企业怎么报税
  • 调整期初数怎么做会计分录
  • 收不到租金怎么解除合同
  • 贴现率与再贴现率计算机行业是好多
  • 如何解决win10系统安装不兼容驱动的问题
  • 工程决算超预算起诉
  • windows10自带桌面时钟
  • 保养费计入什么科目
  • PHP:oci_new_connect()的用法_Oracle函数
  • win10右键没有新建excel和word
  • hp是什么代码
  • 提租补贴应计入什么科目
  • 对外投资概述
  • 企业清缴汇算
  • 如何使用nodejs
  • php怎么输出中文
  • 项目竣工决算审计与工程结算审核的区别是
  • 向境外企业支付技术咨询指导费
  • php三级分销思路
  • mysql框架有哪些
  • 叶面积指数名词解释
  • 深入php第五版中文版pdf
  • 福利费专用发票如何账务处理
  • 云服务器远程端口
  • gym版本和render函数
  • mysqldump 导出数据
  • 现金溢余和短缺的会计分录
  • 房企预缴税款会退税吗
  • 建筑企业提供服务的机制保障
  • 付国外专利费用需办什么手续
  • 供应商费用是什么
  • 什么叫印花税税率
  • 收到三代手续费如何入账
  • 承租人转租房屋的后果
  • 进项税额转出结转还是红冲
  • 不动产计提折旧时间
  • 不含税转换
  • 关于幼儿园的会议内容
  • 代理赚差价违法吗
  • 专项补助资金的账务处理
  • 业务招待费的列支范围
  • 财务费用的科目编码是多少
  • 开票信息中电话怎么填
  • sql server in()
  • centos配置网络地址
  • win7如何开启蓝牙功能
  • win7共享文件夹关闭密码保护
  • win7网速很慢
  • win8个性化外观恢复默认设置
  • uibutton设置圆角
  • node.js实战
  • python科学绘图
  • apktool修改包名
  • jquery点击事件写法
  • 安卓 自动化app
  • 国家税务总局,湖北省税务局
  • 广西税务登记查询网站
  • 企业税务情况查询
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设