位置: 编程技术 - 正文

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

  • 递延所得税抵消分录
  • 出租房屋转为投资房屋
  • 收到扶贫款怎么做会计分录
  • 租赁企业可以开具电费发票吗
  • 可以自己制作的商品
  • 应付利息借贷
  • 企业税收标准是多少
  • 净资产利润率等于净资产收益率吗
  • 公司注销时应付职工薪酬怎么处理
  • 当月有待发货如何退货
  • 以前年度长期股权投资漏记调整
  • 企业用商业汇票支付购货款
  • 机动车发票如何抵扣进项税
  • 一般纳税人可以开1%的发票吗
  • 财政总预算会计分为三级
  • 分公司税款
  • 交付使用资产科目核算
  • 简易征收是优惠政策吗
  • 资产总额是资产负债表中的哪个数
  • macbook右上角
  • 如何知道家里网络是多少兆
  • 软碟通支持uefi吗
  • win10重装系统后网卡没了
  • 王者营地怎么转移到安卓系统
  • 年终结算增值税怎么算
  • 多台电脑如何建立局域网
  • 收款凭证和付款凭证区别
  • phpstudy怎么配置php环境
  • ios.开发
  • 商业汇票转让后,能否追索前手
  • 森佩塑胶
  • php+mysql+jquery实现简易的检索自动补全提示功能
  • 固定资产备抵科目怎么填
  • php文件夹在哪
  • 小规模纳税人增值税月末处理
  • JS初识
  • discuz怎么添加diy模块
  • 票据权利的取得要件
  • 银行存款转银行存款 什么凭证
  • 生产车间的辅助记录
  • python 自定义异常
  • 股权投资公司属于证券公司
  • 哪些进项税不允许从销项税额中抵扣
  • mysql load local
  • 个人所得税如何缴纳
  • 固定资产评估减值还是升值
  • 固定资产可以一次性折旧吗
  • 公司亏损注销了怎么赔偿
  • 新政府会计制度下,属于资产类科目的是
  • 我国消费现状分析
  • 车辆购置税计入什么科目
  • 为什么当月增加的无形资产当月摊销
  • 顾客抽奖奖项名称
  • 退回投标保证金在投诉阶段怎么办
  • 现金收款的程序是什么
  • 汇算期间取得以下收入
  • 销售费属于期间费用
  • 百分百控股的企业
  • 财经网课 app
  • sql中去掉结果为零的
  • macos sierra怎么升级到big sur
  • 极速一键装机
  • 新手怎样
  • win7网页显示不全
  • win7的系统升级win10
  • win8系统没有自带的游戏吗
  • win8适用的pr
  • linux网络设备有哪些
  • 在对linux系统中dir
  • 安卓应用程序数据
  • python常用的安装扩展
  • js实现弹窗
  • .es6文件
  • 离线安装驱动
  • 你需要知道的100位艺术大师
  • javascript原型
  • jquery下拉列表
  • 实际金额与报关金额不符
  • 吉林税务发票自动查询系统网
  • 企业所得税忘记计提了做到下个月可以吗
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设