位置: 编程技术 - 正文

PHP字符串函数localeconv()的用法(php string函数)

编辑:rootadmin
localeconv

推荐整理分享PHP字符串函数localeconv()的用法(php string函数),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:php字符串函数大全,在php中,字符串有哪些表示形式,php string函数,php 字符串函数,php 字符串函数,在php中,字符串有哪些表示形式,php字符串定义,php字符串型数据的定义方式,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 4 >= 4.0.5, PHP 5)

localeconv — Get numeric formatting information

说明 array localeconv ( void )

Returns an associative array containing localized numeric and monetary formatting information.

返回值

localeconv() returns data based upon the current locale as set by setlocale(). The associative array that is returned contains the following fields: Array element Description decimal_point Decimal point character thousands_sep Thousands separator grouping Array containing numeric groupings int_curr_symbol International currency symbol (i.e. USD) currency_symbol Local currency symbol (i.e. $) mon_decimal_point Monetary decimal point character mon_thousands_sep Monetary thousands separator mon_grouping Array containing monetary groupings positive_sign Sign for positive values negative_sign Sign for negative values int_frac_digits International fractional digits frac_digits Local fractional digits p_cs_precedes TRUE if currency_symbol precedes a positive value, FALSE if it succeeds one p_sep_by_space TRUE if a space separates currency_symbol from a positive value, FALSE otherwise n_cs_precedes TRUE if currency_symbol precedes a negative value, FALSE if it succeeds one n_sep_by_space TRUE if a space separates currency_symbol from a negative value, FALSE otherwise p_sign_posn 0 - Parentheses surround the quantity and currency_symbol 1 - The sign string precedes the quantity and currency_symbol 2 - The sign string succeeds the quantity and currency_symbol 3 - The sign string immediately precedes the currency_symbol 4 - The sign string immediately succeeds the currency_symbol n_sign_posn 0 - Parentheses surround the quantity and currency_symbol 1 - The sign string precedes the quantity and currency_symbol 2 - The sign string succeeds the quantity and currency_symbol 3 - The sign string immediately precedes the currency_symbol 4 - The sign string immediately succeeds the currency_symbol

PHP字符串函数localeconv()的用法(php string函数)

The p_sign_posn, and n_sign_posn contain a string of formatting options. Each number representing one of the above listed conditions.

The grouping fields contain arrays that define the way numbers should be grouped. For example, the monetary grouping field for the nl_NL locale (in UTF-8 mode with the euro sign), would contain a 2 item array with the values 3 and 3. The higher the index in the array, the farther left the grouping is. If an array element is equal to CHAR_MAX, no further grouping is done. If an array element is equal to 0, the previous element should be used.

范例

Example #1 localeconv() example

<?phpif(false!==setlocale(LC_ALL,'nl_NL.UTF-8@euro')){$locale_info=localeconv();print_r($locale_info);}?>

以上例程会输出:

参见

setlocale() - Set locale information

PHP字符串函数htmlentities()的用法 htmlentities(PHP4,PHP5)htmlentitiesConvertallapplicablecharacterstoHTMLentities说明stringhtmlentities(string$string[,int$flags=ENT_COMPAT|ENT_HTML[,string$encoding=ini_get(default_charset)[,bool$

PHP字符串函数htmlspecialchars()的用法 htmlspecialchars(PHP4,PHP5)htmlspecialcharsConvertspecialcharacterstoHTMLentities说明stringhtmlspecialchars(string$string[,int$flags=ENT_COMPAT|ENT_HTML[,string$encoding=ini_get(default_charset)[

PHP字符串函数lcfirst()的用法 lcfirst(PHP5=5.3.0)lcfirst使一个字符串的第一个字符小写说明stringlcfirst(string$str)返回str的第一个字符小写了的字符串。如果str的第一个字符是字母,则将其

标签: php string函数

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

上一篇:PHP字符串函数ltrim()的用法(在php中,字符串有哪些表示形式)

下一篇:PHP字符串函数htmlentities()的用法(php字符串的三种定义方式)

  • 税金及附加要扣除吗
  • 所得税汇算清缴账务处理
  • 货物运输印花税减免
  • 公户的钱能买股票怎么处理
  • 汇算清缴职工教育费填在
  • 退休职工能否扣医保
  • 公司申请破产后股东需要还债吗
  • 货已到发票未到跨年怎么做账
  • 增值税发票认证是什么意思
  • 陈列费表格
  • 餐费可以抵扣吗怎么做账
  • 不能抵扣的福利发票要勾选吗为什么
  • 出口佣金比例
  • 连续亏损的公司还要去吗
  • 企业对外捐赠的税法处理
  • 王者荣耀中孙尚香怎么玩
  • 王者荣耀中钟馗怎么出装
  • 上个月做无票收入这个月开票,怎么做分录
  • 电脑bios找不到vt
  • 银行贷款发放怎么做凭证
  • 耕地占用补贴标准
  • 年终奖税务筹划合法吗
  • macOS Big Sur 11.2.1 修订版更新发布
  • 报废机器设备如何缴纳增值税
  • 对账小技巧
  • 审核凭证的操作步骤
  • PHP:imagecreatefrompng()的用法_GD库图像处理函数
  • 人工智能专业计算机科学与技术
  • 新准则土地使用权计入固定资产还是无形资产
  • thinkphp update方法
  • vue中computed作用
  • 正则表达式除去指定字母
  • 周转材料二级科目有哪些
  • python怎么打开mac本地文件
  • python的用途
  • phpcms使用教程
  • 电子发票能退回去吗
  • 新增四大行业营收排名
  • 控股子公司破产清算 母公司需审计
  • 工商企业年报网上申报流程
  • 研发费用的范围包括哪些
  • 优先股和普通股风险哪个大
  • 体检费用需要缴哪些费用
  • 可供出售金融资产属于什么科目
  • 购买银行理财产品安全吗
  • 实收资本什么情况下会增加
  • 纳税人发生应税行为
  • 红字发票异常处理什么意思
  • 已抵扣未申报的税额如何转出
  • 主营业务成本为什么属于损益类科目
  • 企业给员工单独交社保
  • 建筑业老项目和新项目如何计税
  • 股东向公司借款多久必须归还
  • 员工入股会计分录
  • 采用公允价值模式计量的投资性房地产不需要计提折旧
  • 当月无销售要计提工资吗
  • 广告制作需要交文化事业建设税
  • 从增值税抵扣进什么科目
  • 公司的钱如何提出来
  • 事业单位企业所得税汇算清缴怎么做
  • mysql缓冲区
  • u盘如何安装win7系统
  • wmiprvse.exe是什么程序
  • xp系统硬盘管理
  • windows怎么更改网络状态
  • windows 10预览版
  • 麒麟系统命令
  • opengl纹理采样
  • cocos2dx小游戏
  • 怎么快速
  • 如何用python处理pdf
  • node.js快速入门
  • 常用的jquery鼠标事件
  • node.js中express-session配置项详解
  • java script
  • javascript的dom
  • 国家税务总局令第43号公告
  • 增值税开票系统升级
  • 深圳纳税信息查询
  • 重庆国家税务局官方网站
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设