位置: 编程技术 - 正文

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

  • 企业所得税汇算清缴补缴税款分录
  • 小规模纳税人零申报逾期未申报
  • 一般纳税人缴纳税金分录
  • 汽车维修公司做账基本流程
  • 其他综合收益影响递延所得税负债吗
  • 房屋出租收入会计分录
  • 发票怎么看开票最大额
  • 从价定率的计算公式
  • 贷款公司股权转让合法吗
  • 运输企业印花税按什么缴纳
  • 房地产公司机构
  • 纳税调减事项有
  • 自己生产的产品用于职工福利
  • 企业出售产品
  • 开发商按揭贷款担保责任有哪些
  • 增值税专用发票有效期是多长时间
  • 公司集体活动的目的与意义
  • 党建工作经费计提比例
  • 个独企业生产经营所得税率
  • 印花税的计税依据是销项和进项的金额
  • macOS Big Sur 11.0.1(20B29)正式版发布(附可使用的Mac机型)
  • mac复制文件路径后怎么粘贴
  • xp从做系统
  • 抵押房屋可以出卖吗
  • 简易征收办法征收一般纳税人
  • windows7如何格式化恢复出厂设置
  • linux系统情况
  • 土地长期租赁最长多长时间
  • u盘无法格式化为NTFS
  • 溢缴退费是什么意思
  • 银行汇票和银行本票的区别
  • 长期待摊费用应该怎么摊销
  • densenet详解
  • 公司买的公文包会计怎么做
  • 前端基础
  • gmt微调
  • php查询数据是否存在
  • convert convert
  • 小规模纳税人增值税税率
  • 小微企业认定标准 税务
  • 合伙企业与公司一样具有高度的人合性
  • 资产负债表和现金流量表之间的勾稽关系
  • mongodb skip数据量大
  • sql2017附加数据库
  • 固定资产折旧的影响因素
  • 待转销项税额转出
  • 少数股东权益如何保障
  • 发票金额与实际金额不符怎么举报
  • mssql导出数据库
  • 在mysql中,删除表的外键约束的关键字为()
  • 清除windows10登录密码
  • 如何架设ftp
  • win10商店是什么
  • linux系统中用户账户有哪些分类
  • linux操作系统的基本操作
  • win7旗舰版用户
  • centos7yum
  • windows关机电源不断电
  • 在centos7中,一般用( )命令来查看网络接口的状态
  • oeloader.exe - oeloader是什么进程 有什么用
  • 分布式队列秒杀活动
  • (1)cocos2d-x-2.2.4搭建windows开发环境
  • unity中
  • 如何用bat删除指定文件
  • jquery滚动条滚动到指定位置
  • apktool修改包名
  • [置顶]津鱼.我爱你
  • node.js做服务器
  • Android Fragment学习笔记(2) ----使用ListFragment显示列表(上)
  • shell脚本-lt
  • 菜鸟100例python3
  • jquery为什么不火了
  • jquery滚动事件
  • 国家税务局总局河南官网
  • 稳岗补贴是否需要发放
  • 农村摩托车上牌要什么证件和手续
  • 溧阳北站规划图
  • 温州地方税务局
  • 自助办税服务厅怎么用
  • 一般纳税人申请流程
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设