位置: 编程技术 - 正文

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

  • 税收滞纳金是什么债权
  • 公帐的钱可以转给个人私帐可以吗
  • 国际货物运输免征所得税
  • 企业申报表有异常期间可以更换财务负责人吗
  • 发出材料计划成本例题
  • 应付职工薪酬账务处理例题
  • 应付账款发生额在哪方
  • 购买股票如果公司亏损
  • 电话费开专票可抵扣吗
  • 金蝶采购发票怎么红冲
  • 发票认证信息怎么填
  • 购买护肤品的会计分录
  • 原材料费用的分配
  • 工资扣税标准计算方法
  • 工资计入劳务成本
  • 公益事业捐赠
  • 如何创建一个空的dataframe
  • 电子专用发票没有发票代码
  • 长期负债在报表哪里看
  • 农民工劳动报酬权救济制度存在的问题
  • 增值税怎么填表
  • 季节性停工是什么
  • Win7系统中如何快速查询文件内容
  • 公司收到搬运发票怎么做
  • phpexplode函数
  • 企业所得税申报表
  • 360se进程太多
  • 简易征收增值税一般纳税人怎么报税
  • 迷迭香怎么养殖方法
  • php封装app
  • 公司为员工投保意外险,意外险赔付给谁
  • 怎么解锁城堡上空
  • 出差餐补如何做账
  • 元的解释是什么?
  • flexbuffers
  • 常用的css样式有哪些
  • ps命令显示进程状态
  • 帝国cms移动端
  • 长期待摊费用如何处理
  • 企业产值用什么符号表示
  • 汽车进项税什么时候抵扣
  • java一维数组从小到大排序
  • vue多平台
  • python lzo
  • python 记录日志
  • 收到员工交来现金怎么入账
  • 购买图书的会计账务处理
  • 以前未入账固定资产补入账
  • 技术转让和技术开发区别
  • 怎么修改申报数据
  • 未分配利润处理顺序
  • 月销售额10万以下一般纳税人免征增值税
  • 应付职工薪酬的账务处理
  • 在建工程包括哪些大类科目
  • 购买预付卡如何开发票
  • 进项税怎么记账
  • 地租钱不付如何为
  • 被选为工会代表
  • 淘宝卖家运费险为什么越来越贵
  • 土地税计税方法
  • 固定资产折旧残值率的最新规定2021
  • 提交印花税会计分录
  • 保险公司业务员误导客户的后果
  • 营业收入是利润总额吗
  • ghost装win7无法启动
  • 64位win7旗舰版右下角音量小喇叭图标不见了怎么找回?
  • win7系统怎么用键盘开机
  • linux-c
  • win7其他设备
  • js domcontentloaded
  • 透明十六进制
  • nodejs mocha
  • python socket传输文字到网页
  • js中如何弹出提示框
  • 提问:请问海淀区各税务所管辖范围都是哪里?
  • 契税完税证明怎么补打
  • 江苏社保退工办理流程
  • 陕西电子税务电话是多少
  • 怎么登录云南省招考网站
  • 内蒙民生认证系统
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设