位置: 编程技术 - 正文

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

  • 房地产预缴增值税计算方式
  • 预收账款哪一方是增加
  • 个税申报系统中累计减除费用可以手动修改吗
  • 纳税申报现金流量表报错了可以重新申报吗
  • 供用电合同主要有
  • 滞纳金可以个人承担吗
  • 不续约赔偿金要交税吗
  • 未收到发票暂估入库的进项税额可以暂估进原料成本吗
  • 某企业原材料采用实际成本核算,2019年6月
  • 所有者权益的利得和损失
  • 开发商按揭贷款担保责任有哪些
  • 辅导期一般纳税人预缴增值税
  • 现金流量表中所指的现金是指( )
  • 一般纳税人技术开发税率
  • 利润表里的营业税金及附加如何计算
  • 出口退税成本核算
  • 金税盘开红字发票
  • 已计提的存货跌价准备确认为净损失吗
  • 增值税红字发票是什么意思
  • mac系统怎么玩游戏
  • 鸿蒙3.0系统哪些手机可以升级
  • 单位购买图书会计分录
  • 已经计提工资后怎么做账
  • 苹果电脑屏幕键盘怎么去除
  • unix和linux适用于
  • win11安装更新时出现一些问题
  • 通行证普通发票放在凭证哪里
  • 职工薪酬可能计入什么科目
  • 产品生产业务核算工作实训
  • 硬盘最小的存储单位
  • 商品流通企业会计科目表
  • 可变现净值属于资产计量属性吗
  • 变动成本产品成本包括哪些
  • 海浪冲击着海岸
  • ab计数器指令程序
  • 超过500万需要补税吗
  • 个人咨询费发票是增值税
  • nvm 安装node
  • php如何入门
  • javascriptjs
  • 如何测试php
  • js 字符串 中 字符位置
  • 《开具红字增值税专用发票信息表》纸质
  • 资产减值损失为什么要调增
  • 账户验证是什么意思
  • 被投资的公司注销后投资公司怎么处理
  • 个税赡养老人专项扣除 多人
  • 织梦cms官网
  • phpcms程序
  • 批处理命令在windows操作中的典型应用
  • 工会经费怎么计算缴纳
  • 人民币报关可以收美金吗
  • mysql批量新增字段
  • 库存商品暂估入库是什么意思
  • 理财产品怎么收费
  • 广告赞助支出可以抵税吗
  • 实收资本会计处理方法
  • 营改增后房地产企业如何开票
  • 餐饮店赠品
  • 发票金额比实际支付金额大
  • 哪些发票不能开专票
  • 住房租金专项附加扣除金额
  • linux系统讲解
  • linux用
  • fedora vlc
  • centos启动按e没用
  • 24个方法
  • cmd.exe是什么意思
  • Win7系统安装方法
  • win10移动版能运行电脑软件吗
  • jquery点击切换div
  • 基于nodejs的项目
  • linux命令scp和sftp详细介绍
  • vue gallery
  • jquery使用教程
  • 2021年江苏城镇医保网上缴费
  • 甘肃省国家励志奖学金证书打印网址
  • 东莞医保缴费凭证怎么下载
  • 北京税务查验中心官网
  • 税务培训主题
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设