位置: 编程技术 - 正文

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

  • 个体工商户要做帐吗
  • 税前弥补亏损是净利润吗
  • 如何确定开票税率是否正确
  • 公司购车购置税有优惠吗
  • 成本核算需要哪些基础工作
  • 股东借款利息收入放什么科目
  • 成本收入不配比的风险有哪些
  • 属于劳务分包合同
  • 长期股权投资减值准备可以转回吗
  • 销售免税货物如何开票
  • 补交增值税怎么处理
  • 社保和公积金缴费基数怎么算
  • 机动车发票如何抵扣进项税
  • 营改增后自产产品用于在建工程
  • 提示没有安装QQ怎么处理
  • 资本金结汇资金用途
  • 董事会费汇算清缴计入什么科目
  • 付款方付款的发票税金能入账吗?
  • 月末税金及附加税金的账务处理
  • 印刷费可以开哪些科目
  • 资产负债表没有实收资本正常吗
  • 公司收到汽车理赔款
  • 公司职员培训与管理
  • 软件开发怎么做会计分录
  • 存货跌价准备怎么理解
  • 高新技术企业研发人员比例要求
  • php 反射
  • php数字转换大写
  • php防止再次刷新
  • 内置管理员无法打开此应用
  • mac安装wine教程
  • 银行承兑汇票的会计分录
  • PHP:imageistruecolor()的用法_GD库图像处理函数
  • 会计凭证附件规范要求
  • apache无法访问自己的页面
  • yolov5配置
  • 关基系统防SSL证书断供,知道创宇“包办式”国密改造方案省心又安全
  • spring boot s
  • 新手入门指南
  • 商贸企业出口退税吗
  • 中央空调的维护和保养
  • 销售费用处理不包括哪些
  • 外管证异地预缴税款是什么意思
  • 织梦系统
  • 资产处置费用是指单位经批准处置资产时发生的费用
  • 个体工商户怎么年审
  • 小规模纳税人不超过30万怎么做账
  • 办公费用开专票可以抵扣吗
  • 企业可以一次性现金的方式发放工资
  • 补缴去年的附加税怎么算
  • 营业收入计入销售收入吗
  • 会计政策变更追溯调整的年限
  • 以前年度是什么意思
  • 预付账款是负数有什么税收风险
  • 员工在工伤
  • 记账凭证分类
  • 提供劳务方式是什么意思
  • 企业里面不征税的有哪些
  • 航天金税服务费发票在哪打印
  • 服务业收入的会计分录
  • 房地产企业前期围墙费用
  • 哪些发票必须注销
  • sql基本教程
  • 查看linux的命令
  • centos硬件配置
  • win8隐藏任务栏怎么恢复
  • win8电脑锁屏时间怎么设置方法
  • WIN10补丁无法卸载
  • python socket操作
  • perl中的$1
  • 利用python-Flask框架搭建本地数据可视化网站 原创
  • 游戏开发unity3d
  • android自定义view ondraw有时候不执行
  • 用css制作网页的步骤
  • js每天的定时任务
  • javascript教程
  • 江西电子税局
  • 地方税务局受谁领导
  • 快手怎样代卖
  • 湖北省税务局网站授权
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设