位置: 编程技术 - 正文

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

  • 已申报税额和已缴纳税额
  • 城建税和教育费附加减免政策
  • 业务宣传费和广告费的扣除标准
  • 税收实体法和程序法分类
  • 用库存现金支付职工医药费用69元会计人员编制的
  • 劳务服务公司不含派遣,能接外包吗
  • 进口设备的重置成本包括( )
  • 收票据计息利息为什么要红字冲账?
  • 退休人员基本养老金调整幅度需要综合考虑什么因素
  • 客户已经抵扣的发票怎么开负数发票给对方
  • 年金计算个税需要扣除吗
  • 维修费增值税
  • 印花税的计税依据含增值税吗
  • 旅游业务增值税税率
  • 固定资产残值率一般是多少
  • 两家公司合租一个房子
  • 工会经费的开支必须取得发票么
  • 在Win7中,鼠标非最大化
  • 腾达路由器管理员密码
  • mac锁屏屏保
  • 外汇账户怎么开
  • win11预览版更新界面
  • linux 网络故障
  • c盘扩展卷是灰色的,有空间
  • php数组函数,选班长
  • php打开文件读取内容
  • 产供销一体化什么意思
  • 安全生产专用设备目录
  • 增值税的计税依据包括契税吗
  • 财政补贴增值税如何开票
  • 手续费在银行系统哪里查
  • 增值税发票校验码在哪个位置
  • typescript .d.ts
  • 建筑保温材料施工规范
  • 费用类和成本类有哪些
  • 年报营业额填多少不纳税
  • 收到进项税发票
  • js中typeof用法
  • 应收处理的两大内容是什么
  • 折扣折让的会计分录
  • 字符串合并函数
  • db2 -952
  • 固定资产减少处理
  • 增值税发票查询全国统一发票查询平台
  • 建筑附加税税率
  • 幼儿园的经费支出主要包括哪几个方面
  • 消耗品清单
  • 现金支付有借款利息吗
  • 长期股权投资账务处理实例
  • 营销策划服务费属于什么服务
  • 年末转出未交增值税借方余额怎么处理
  • 事业单位非税收入帐务处理
  • 公司给员工结婚红包
  • 预付账款跨年处理分录
  • 银行贷款利息支出税前扣除标准
  • 日常费用报销表格
  • 存货的实际成本法
  • 企业收到的应收票据应按什么作为入账金额
  • sql语句数量
  • win10 Realtek HD Audio更新失败怎么办 win10关闭UAC解决Realtek HD Audio更新失败
  • linux crontab命令详解
  • linux中samba服务器的设计方案
  • 如何关闭win10自带杀毒软件
  • WARNING: /tmp: File system full, swap space limit exceeded的解决办法
  • linux条件判断
  • windows设备管理器在哪里打开
  • centos删除vg
  • 教程:如何在Win10 PC上玩Pokémon Go游戏
  • 打开字符面板
  • linux怎么查看挂载点
  • unity签名
  • unity小游戏代码
  • 三消游戏在线
  • js闭包的用处
  • jquery3.3.1
  • python的argparse用法
  • 电子税务局开的发票怎么作废
  • 税法查询系统
  • 我的世界服务器怎么创建
  • 缴纳耕地占用税的好处
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设