位置: 编程技术 - 正文

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

  • 公司申报个税流程
  • 增值税专用发票抵扣税额是什么意思
  • 税务现金流量表怎么填
  • 固定资产入账原值含税价吗
  • 单位产品销售税金
  • 城镇土地使用税的计税依据
  • 单位交的社保明年能退吗
  • 公对公不开票怎么办
  • 公司分红股需要交税吗
  • 什么样的情况可以补缴社保
  • 预计销售退回的钱怎么算
  • 补交前期未开票收入税金本期怎么申报?
  • 注册资本金印花税什么时候缴纳
  • 材料加工计入什么科目
  • 委托加工物资加工费怎么结转
  • 生产车间计提折旧分录
  • 电子发票怎么红冲步骤视频
  • 出口佣金比例
  • 购货申请书
  • 信息化投入包括什么投入和什么投入
  • 销售返点怎么做分录
  • 明细账是什么样子
  • 公司购买货物
  • 分配结转制造费用时借方科目
  • 为什么老是跳到别的网站
  • 投影仪哪种光源亮度高
  • PHP:imagesavealpha()的用法_GD库图像处理函数
  • 股票的发行费用怎么入账
  • 可变现净值属于资产计量属性吗
  • 结转以前年度本年利润会计分录
  • 小企业固定资产折旧方法包括
  • 目标检测算法有哪些
  • 长期股权投资
  • sql server2016使用
  • 微信小程序开发平台
  • mongodb中的objectid
  • 工业企业取得土地收益
  • 兼职人员的差旅费
  • 网上更正增值税申报表
  • sql server 2005 win10
  • 合同金额含税么
  • 2019年印花税减半征收条件
  • 可供出售金融资产是流动资产吗
  • 生产车间计提费用会计分录
  • 小微企业是怎样自己认定的呢
  • 季度预缴企业所得税要交滞纳金吗
  • 外购货物用于促销的账务处理
  • 怎么冲减多计提的工会经费
  • 报关单金额大于出口发票金额
  • 收回客户货款会计分录怎么写
  • 进项发票和销项发票怎么抵扣
  • 纳税人延期缴纳税款
  • 购置固定资产支出怎么算
  • 审计测试会计分录怎么做
  • 吊装费是属于什么报销项目
  • sqlserver数据库显示单个用户
  • centos7如何安装yum命令
  • hyper v虚拟机
  • linux中man的用法
  • centos6创建文件
  • 怎么把u盘两个盘合并到一起
  • WIN7系统如何设置表格默认保存位置
  • win8如何使用word
  • win7系统小喇叭有红叉没声音
  • win7资源管理器不停的崩溃重启
  • win10系统附件在哪里
  • easyui validatebox验证
  • perl-v
  • apktool破解应用内购
  • android自定义样式
  • unity编译速度吃什么硬件?
  • jquery多级菜单
  • 用jquery实现局部刷新
  • jQuery Tags Input Plugin(添加/删除标签插件)详解
  • 开票软件提示连接服务器失败怎么办
  • 不交社保申报个税有风险吗
  • 广东省税务总局官网
  • 新加坡关税壁垒
  • 进项发票勾选认证如何导出明细
  • 严守纪律守规矩
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设