位置: 编程技术 - 正文

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

  • 没有收入可以不给抚养费吗
  • 发票开工程服务和工程款的区别
  • 外企当年利润能赚多少
  • 房地产增值税怎么算举例说明
  • 赠送固定资产会计处理
  • 工作过失扣工资合法吗
  • 工程款材料费票怎么开?
  • 企业所得税是按季度还是按月
  • 总账科目和明细科目有哪些
  • 电话充值卡如何变现
  • 土地所有权和使用权的法律规定
  • 退关税怎么入账
  • 营改增后融资租赁税率
  • 促销费属于现代服务类吗
  • 香港公司的法人叫什么
  • 网银企业证书年费入哪个科目
  • 季报根据什么申报
  • 职工福利费扣除率是多少
  • linux输出结果
  • php日期时间函数
  • 承租人对经营租赁和融资租赁会计处理方式
  • 发票未报送怎么回事
  • vue3+vite在main.ts或者main.js文件中引入/App.vue报错(/App.vue不是模块)
  • 残疾人就业保障金有什么好处
  • uni app面试题
  • 其它应收款的内容
  • php框架介绍
  • 又拍云使用教程
  • 职工参加生育保险
  • sql数据库语句基本语法
  • 补付转账支票会退回吗
  • fasternet高效上采样模块
  • springboot基本结构
  • bind函数错误
  • php公众号推送完整示例
  • 研发 专利
  • 现金流量表的附表如何编制
  • 投标保证金的缴纳方式有哪些
  • 小规模纳税人应交税费会计分录
  • 怎么看是不是真发
  • 印花税怎么计提记账
  • 网银转账往来款怎么做账
  • 银行借记和贷记一样吗
  • 甲供工程范围
  • 发票已经报送怎么处理
  • 汽车买卖中介
  • 营业执照变更法人需要本人去吗
  • 支票存根联可以涂改吗
  • 事业单位扶贫费用怎么做账
  • 安装工程什么时候套脚手架搭拆
  • 租赁收入属于什么行业
  • 发票怎么打印的出来
  • 一般纳税人附加税
  • 付款与开票单位不一致怎样做账
  • 建筑业当月有收入,没成本怎样办
  • 商业健康保险抵扣个税规定
  • win7系统设置开机启动项
  • 浅谈linux的发展方向和应用范围
  • mac上safari
  • windows8网络连接
  • linux conio
  • win7升级win 10
  • OpenGL Tutorial: (2) Creating an OpenGL Window
  • Android屏幕外侧滑条
  • jquery中操作dom节点的方法
  • Node.js中的全局变量有哪些
  • 关于jquery的描述错误的是
  • androidstudio 教程
  • linux命令提示符
  • cmd命令format
  • jquery实现div左右移动
  • 深入理解计算机系统 电子书
  • python enumeration
  • js闭包作用问题解决应用
  • code encode的区别
  • 开普通发票必须要纳税人识别号吗?
  • 浙江省国家电子税务局官网登录
  • 广东地方税务局领导班子名单
  • 辽宁网上税务
  • 关于车辆购置税的规定,下列说法正确的是
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设