位置: 编程技术 - 正文

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字符串的三种定义方式)

  • 增值税一般纳税人税率是多少?
  • 不得从销项税中抵扣的进项税大白话
  • 违约金的专票能抵扣吗
  • 工程管理服务属于哪个国标行业
  • 施工水电费扣除比例
  • 收不回的款项怎么处理
  • 聘用退休员工
  • 应付职工薪酬纳税调整比例
  • 一次性奖金并入综合所得
  • 长期股权投资的交易费用计入哪里
  • 装饰费是否计算缴纳土地增值税
  • 在登记账簿时,应在记账凭证上注明所记账簿的页数
  • 公司的日常开销开发票怎么写
  • 房屋租赁发票能抵扣几个点
  • 劳务公司注销了,未出的款怎么走账
  • 建筑公司工地买空调
  • 组织机构代码证过期
  • 报税了没有交税可以领发票吗
  • 资产处置损失计算方法
  • 版权使用费属于什么税目
  • 公益性生物资产有哪些
  • 个体工商户怎么办对公账户
  • 预提费用新会计准则叫什么科目
  • 实物资产股权投资包括
  • 银行拒付汇票金额的救济方法
  • Linux下 php5 MySQL5 Apache2 phpMyAdmin ZendOptimizer安装与配置[图文]
  • win10待机唤醒黑屏死机
  • 金融企业贷款损失准备金税务管理
  • 支付给代理机构的手续费
  • 增值税中的筹划方法哪些可以应用在消费税中,为什么?
  • 外商投资企业注册登记
  • 以专利权出资,能否使用专利权
  • 存货成本在哪个表里
  • js读取本地excel
  • anaconda3.5.2安装教程
  • Python人脸识别智能考勤系统 (供源码,附报告)(可答疑,可调试)
  • 5个 ChatGPT 功能,帮助你提升日常编码效率
  • css3的模块结构和应用
  • php分页思路
  • 人工费和劳务费怎么算
  • 土地增值税扣除率怎样计算
  • 织梦cms为什么不维护了
  • 支付广告费没有票怎么入账
  • distinct用法及搭配
  • 待报解预算收入扣款是什么意思
  • 发票清单用什么纸打印出来
  • 仓库出入库账本怎么做
  • 长期股权投资成本法会计处理
  • 发行股票支付给证券商的费用计入哪
  • 制单和审单的依据是什么
  • 债务重组的账务处理和税收差异
  • 房产契税新政策2023
  • 短期借款怎么做账务处理
  • 偿债基金专户
  • 企业之间的往来款要1900万要交多少税
  • 可抵扣暂时性差异产生的情况有
  • 收取加盟费的账户是什么
  • 最新的会计规定出台时间
  • 一般纳税人会计分录
  • 会计凭证装订后应当加贴封条
  • 营改增后混凝土税率
  • 应收账款折率
  • 生产成本和生产费用的关系
  • mysql5.7版本的服务的名字是
  • win8怎么设置
  • freebsd版本选择
  • linux系统软件包安装
  • mac10.10.5无法升级
  • macbook core2
  • android 布局
  • unity工程文件怎么弄
  • js 进阶
  • jquery怎么给div赋值
  • 当jquery ajax遇上401请求的解决方法
  • python怎么理解
  • python编程简单案例
  • 网上办税如何打印电子凭证
  • 特定公共服务是什么意思
  • 福建省运会2022年
  • 营销服务协议书范本
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设