位置: 编程技术 - 正文

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

  • 地产企业预缴增值税政策
  • 实收资本收到后用途
  • 利息收入的纳税调整
  • 外购一批原材料对外销售
  • 旅游业营改增差额征税的会计核算怎么做?
  • 个税多申报了实发没有这么多,如何处理
  • 销售返点的账务处理及税务处理
  • 试营业生产的样品怎么做账?
  • 固定资产已入库款项已付次月开发票何时记提折旧
  • 记账凭证做完之后干什么
  • 浙江印花税税率
  • 1697510840
  • 印花税不足1元 需要计提吗
  • 企业收到政府拆迁补偿款要交税吗怎么做账
  • 会计报表申报期限怎么填
  • 外汇账户怎么做账
  • 股东之间转让股权需要股东会决议吗
  • 退款给客户怎么写分录
  • 代理公司可以开服务费发票吗
  • win10系统如何设置开机启动软件
  • php数组清空
  • 企业工会会费是什么意思
  • linux硬件设备分为
  • 如何让电脑安全
  • 快启动u盘装系统教程
  • 新准则管理费用税金
  • 其他应付款年末怎么结转
  • 最小的摄像头是多大
  • johnny kim宇航员
  • vue-admin-master
  • 固定资产清理净损失为什么在贷方
  • 劳保用品会计科目进什么科目
  • 2023年前端开发找工作好找吗
  • 超参数有哪些调优方法
  • es6的class类如何实现继承
  • ps_clk
  • php原生导出excel表单元格格式
  • linuxless命令查看文件
  • js中typeof用法
  • mongodb主从同步速度
  • 预提工资的会计处理
  • 稳岗补贴缴纳社保个人部分还是公司部分
  • 公司个税如何申报流程
  • 一般纳税人开出去的普票可以用进项抵扣吗
  • 企业分期收款销售商品,即商品已经交付
  • 出口企业样品收入分录
  • 公司涉及研发房怎么办
  • 上月发票如何冲红
  • 植物售卖
  • 收到赞助费如何开发票
  • 收入的确认条件包括
  • 成本价和原价一样吗
  • 在计划管理中根据事实思考这一步的内容是
  • 商标是无形资产还是商誉
  • 增值税系统技术维护费 减免政策
  • 公司支付劳务工资怎么做账
  • 工业会计建账做账流程
  • 伤病假条
  • mysql 5.7.11 zip安装配置方法图文教程
  • 回顾30年的水文模型参数率定研究
  • 清除cmos后电脑不启动
  • win7如何创建文件夹
  • winhelp.exe - winhelp是什么进程
  • 64位的ubuntu15.04怎么安装WPS?
  • win7暗藏的超实用快捷键汇总
  • mac电池不能被识别吗
  • window10的微软商店在哪
  • android环境搭建实训心得
  • opengl教学视频
  • linux系统下hosts文件详解及配置
  • javascript的原型,原型链,有什么特点?
  • 对于不回微信的人,这样做,尽显高情商!
  • jquery实现回到顶部
  • node.js 开发工具
  • unity3d知乎
  • js自定义鼠标右键菜单
  • dom基础知识
  • 漂亮的相片超好看的
  • 怎么登录云南省招考网站
  • 耕地占用税是土地增值税扣除项目吗
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设