位置: 编程技术 - 正文

PHP:mb_encode_numericentity()的用法_mbstring函数

编辑:rootadmin
mb_encode_numericentity

推荐整理分享PHP:mb_encode_numericentity()的用法_mbstring函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4 >= 4.0.6, PHP 5)

mb_encode_numericentity — Encode character to HTML numeric string reference

说明 string mb_encode_numericentity ( string $str , array $convmap [, string $encoding = mb_internal_encoding() [, bool $is_hex = FALSE ]] )

Converts specified character codes in string str from character code to HTML numeric character reference.

参数

str

The string being encoded.

convmap

convmap is array specifies code area to convert.

encoding

encoding参数为字符编码。如果省略,则使用内部字符编码。

is_hex PHP:mb_encode_numericentity()的用法_mbstring函数

返回值

The converted string.

更新日志

版本 说明 5.4.0 Added is_hex parameter.

范例

Example #1 convmap example

<?php$convmap=array(intstart_code1,intend_code1,intoffset1,intmask1,intstart_code2,intend_code2,intoffset2,intmask2,........intstart_codeN,intend_codeN,intoffsetN,intmaskN);//SpecifyUnicodevalueforstart_codeNandend_codeN//AddoffsetNtovalueandtakebit-wise'AND'withmaskN,then//itconvertsvaluetonumericstringreference.?>

范例

Example #2 mb_encode_numericentity() example

<?php/*ConvertLeftsideofISO--1toHTMLnumericcharacterreference*/$convmap=array(0x,0xff,0,0xff);$str=mb_encode_numericentity($str,$convmap,"ISO--1");/*ConvertuserdefinedSJIS-wincodeinblock-tonumericstringreference*/$convmap=array(0xe,0xee,0x,0xffff,0xef,0xe0bb,0x,0xffff,0xe0bc,0xe0fa,0x,0xffff,0xe0fb,0xe,0x,0xffff,0xe,0xe1b6,0xc8,0xffff,0xe1b7,0xe,0xc9,0xffff,0xe,0xe,0xc,0xffff,0xe,0xe2ef,0xd,0xffff,0xe2f0,0xee,0x,0xffff,0xef,0xe3ab,0x,0xffff);$str=mb_encode_numericentity($str,$convmap,"sjis-win");?>

参见

mb_decode_numericentity() - 根据 HTML 数字字符串解码成字符

PHP:mb_regex_set_options()的用法_mbstring函数 mb_regex_set_options(PHP4=4.3.0,PHP5)mb_regex_set_optionsSet/Getthedefaultoptionsformbregexfunctions说明stringmb_regex_set_options([string$options=mb_regex_set_options()])Setsthedefaultoptionsdescri

PHP:mb_regex_encoding()的用法_mbstring函数 mb_regex_encoding(PHP4=4.2.0,PHP5)mb_regex_encodingSet/Getcharacterencodingformultibyteregex说明mixedmb_regex_encoding([string$encoding=mb_regex_encoding()])Set/Getcharacterencodingforamultibyterege

PHP:mb_ereg_match()的用法_mbstring函数 mb_ereg_match(PHP4=4.2.0,PHP5)mb_ereg_matchRegularexpressionmatchformultibytestring说明boolmb_ereg_match(string$pattern,string$string[,string$option=msr])Aregularexpressionmatchforamultibytestring

标签: PHP:mb_encode_numericentity()的用法_mbstring函数

本文链接地址:https://www.jiuchutong.com/biancheng/275031.html 转载请保留说明!

上一篇:PHP:mb_ereg_search_getpos()的用法_mbstring函数

下一篇:PHP:mb_regex_set_options()的用法_mbstring函数

  • 牲畜资产科目包括哪些
  • 增值税纳税义务发生时间
  • 车辆抵押登记费用可以退回吗
  • 公司研发阶段的产品领料怎么处理?
  • 五险一金账务处理流程图
  • 不能税前扣除的费用有哪些
  • 年收入超过12万什么时候申报
  • 钢结构制作安装合同
  • 维护服务合同可不可以一直续签
  • 纳税信用被评为D级怎么办
  • 差额纳税计算方法
  • 简易计税视同销售如何处理?
  • 金税三期得死多少企业
  • 利息保障倍数计算公式资本化利息
  • 金蝶采购发票怎么红冲
  • 金税盘全额抵扣分录怎么做
  • 企业收到贷款贴息会计分录
  • 六月雪的养殖方法和注意事项
  • 国家税务开票流程
  • 车间租金计入什么会计科目
  • 免税出口样品收多少税
  • ms-dos 6.0
  • 装饰装修工程月薪多少
  • 如何把文档转换成二维码
  • dns进程
  • Win10 19043.1237 9月累积更新 KB5005565推送(附更新修复+下载)
  • 销售不动产应交的增值税计入
  • 解决打呼噜只需一杯水
  • 公司要交什么税个人卖给公司的二手车
  • 用友预收货款账务处理
  • 税务局开出来的发票没问题吧?
  • 朱砂矿洞的历史
  • 莱辛巴赫瀑布在瑞士哪里
  • 司法拍卖所购的房产
  • 小规模纳税人企业所得税税收优惠政策
  • 手把手教你如何套路男神
  • 代缴社保可以领住房补贴吗
  • 帝国cms栏目可以看吗
  • java 日志系统
  • 小规模纳税人增值税税率
  • 减资如何弥补亏损
  • 试运行收入账务处理
  • dede织梦怎么转成zblog
  • 公益性捐赠支出怎么算
  • 火车票丢了还能再取吗
  • 出售无形资产科目
  • 汇兑结算方式的会计分录例题
  • 应收票据及应收账款包括哪些科目
  • 给员工的奖金计入什么科目
  • 高新技术企业的申报条件
  • 用友结算成本处理在哪里
  • 现在增值税是多少个点
  • 收到的出口退税款需要并入利润总额吗
  • 销售方开具的红字专票购买方在税控盘要怎么操作
  • 产成品入库的单据是什么
  • 工程尾款要计入什么科目
  • 明细分类账的记账
  • 车船使用税会计分录怎么写
  • win8键盘f1到f12取消按fn
  • Computer Browser是什么进程,Computer Browser有什么用?
  • FreeBSD中使用QUOTA(磁盘配额)来限制用户空间
  • 物联网 iot
  • windowsxp如何重装ie浏览器重装
  • centos7.5切换图形界面
  • windows7的任务管理器在哪
  • centos6.5双网卡绑定
  • win7 64位系统无法清空回收站的故障原因及解决方法
  • windows102021年更新
  • logd是什么进程
  • win10系统组策略怎么打开
  • w8系统文件夹怎么设置密码
  • js对象属性值
  • android环境搭建教程
  • nodejs word
  • 使用多进程web
  • nodejs一键安装
  • shell脚本计算执行时间
  • js移动dom
  • jquery课程内容总结
  • js分享软件集合
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设