位置: 编程技术 - 正文

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系统添加静态路由命令
  • 怎么隐藏权限
  • 无线路由器温度范围
  • manager's office是什么意思
  • memory tester
  • 结算借款的账务处理办法
  • php 用户注册
  • js文件格式化工具
  • 应付职工薪酬负数风险
  • 营改增抵减的销项税发票要抵扣吗
  • mnist数据集下载码
  • php如何定义二维数组
  • phpcms模块
  • 端午节补几天工资
  • 企业所得税申报表在哪里打印
  • 过路费抵扣进项税怎么计算
  • 公司购买一台电脑低于3000元怎么办
  • 银行承兑到期后几天内有效
  • 报销职工福利
  • 银行转账支付凭证有效期多久
  • 上月未结账本月不能结账
  • 专用发票丢失怎么入账
  • 国有划拔土地房整体可以买卖吗
  • 事业单位购入
  • 理财中的资产是什么意思
  • 取得税控服务费会计分录
  • 背书转让的电子汇票怎么查询
  • 建筑业农民工工资个税合理避税
  • 连锁零售药房
  • 应付账款的账务怎么处理
  • 双击盘符弹出属性
  • 启用5g后流量有什么影响
  • linux rpm如何安装
  • win8在哪里卸载软件
  • win10双击打开文件设置方法
  • win10 rs3
  • go进程管理
  • window10光驱
  • win8更新错误
  • 3ds怎么用3ds格式
  • 微信小程序选择地址
  • javascript之Array 数组对象详解
  • 教你学python
  • js表单验证代码Email
  • unityproject
  • vue打包页面空白
  • python利用csv模块在对csv文件进行操作
  • unity-
  • python的特点及应用范围
  • 刚开始学java的心得体会
  • jquery中的css方法
  • python怎么爬
  • 在python中通过什么语句创建一个空集合
  • jQuery.Uploadify插件实现带进度条的批量上传功能
  • google it automation with python
  • Android 使用nodejs
  • 贵州企业申报系统
  • 总公司和子公司是什么关系
  • 什么是深入调研工作
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设