位置: 编程技术 - 正文

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

  • 增值税退税账务处理最新规定
  • 本月计提所得税费用
  • 一般纳税人企业所得税多久申报一次
  • 当期所得税是否是当期缴纳的所得税
  • 奖金算不算工资薪金所得
  • 冲红凭证更正时摘要怎么写
  • 主营业务税金及附加怎么算
  • 发票右上角打印缺数字
  • 计提存货跌价准备怎么计算
  • 高铁票抵扣增值税
  • 法人可不可以办信用卡
  • 音乐茶座取什么名字好呢
  • 增值税如何减税
  • 他人购买股权个人所得缴纳个人所得税率是多少?
  • 怎么确认外购存货成本?
  • 本月支付上月运费
  • 银行卡收到养老金是什么意思
  • 存货跌价准备转回的条件有哪些
  • 企业支付的工伤费用怎么入账
  • 票据贴现手续费发票可以抵扣吗
  • 购进半成品怎样做分录
  • 电子缴税付款凭证怎么做记账凭证
  • 银行增值税免税收入有哪些
  • window10过期
  • 开增值税专用发票需要什么资料
  • 分期购车的会计分录
  • 增加间接费用科目的方法
  • Win11怎么设置屏幕熄灭时间
  • 企业开发产品转为自用的,不得在税前扣除折旧费用
  • 先征后返的会计分录
  • PHP:apache_lookup_uri()的用法_Apache函数
  • php @method
  • 孚日山脉猞猁
  • php自定义函数的语法格式
  • 金蝶专业版固定资产初始数据录入
  • 【Pytorch深度学习实战】(11)变分自动编码器(VAE)
  • 火车票抵税申报表怎么填
  • 企业的日常活动都有哪些
  • 企业给企业借款收入会计处理
  • 全年累计个税扣除公式
  • 保险业务手续费
  • 物流公司驾驶员工资计算方式
  • 0税率发票什么意思
  • 进口关税完税价格的计算公式
  • 毛利润和纯利润
  • 资产负债表的固定资产怎么算出来的
  • 付款退回怎么做账
  • 购入房产会计记账凭证怎么做
  • 高企数据造假
  • 会计学营业利润
  • 股权转让的账务怎么处理 会计分录
  • 企业的融资租赁
  • 空调安装开发票
  • 普通发票采购分录
  • 收到收到
  • 定额发票的使用方法
  • 企业会计账簿设计的原则
  • 提供劳务的收入计入什么科目
  • 数据库性能优化面试题
  • centos 3
  • macbookpro鼠标触控板
  • linux 杀掉指定用户的进程
  • win10安装不了ie
  • windowsxp的主要特点
  • 苹果Mac OS X通知中心提示音怎么修改 OS X通知中心提示音更换方法图解
  • 批处理bat
  • Zen Coding css,html缩写替换大观 快速写出html,css
  • perl脚本use strict
  • 攻击判定是什么意思
  • linux保存
  • ja开发
  • android sdk loader的问题
  • 自定义progressbar
  • Using Django with GAE Python 后台抓取多个网站的页面全文
  • 关于翡翠手镯知识
  • 动态生成xml
  • python 终端
  • bootstrap学习
  • 工会经费什么时候交
  • 绵阳市十大纳税企业排名
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设