位置: 编程技术 - 正文

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

  • 本期应补退税额和期末未缴税额
  • 个人所得税个体户减半
  • 金税盘数据怎么备份
  • 增值税销项税额账务处理
  • 升级10万元版发票有什么要求
  • 固定资产登记在三栏式吗
  • 部分产品退货怎么办
  • 母子公司间借款利息交税吗
  • 短期借款属于经营性资产吗
  • 发票上的密码区有什么用
  • 个人承担的社保计入管理费用吗
  • 水利建设专项收入怎么计算
  • 汇算清缴调增的金额,如何做会计分录
  • 建筑公司现金日记账怎么填写
  • 当月开的发票当月已付款怎么做分录?
  • 单位购买办公用品可以抵扣吗
  • 工资五险一金和税怎么处理
  • 增值税进项税额转出的账务处理
  • 企业出租屋顶不需要缴税!
  • 小规模纳税人和一般纳税人哪个好
  • 公益捐赠税前扣除政策
  • 小规模税率还是1%吗
  • 差额征税预缴税额怎么算
  • win10点击添加账户没反应
  • 电脑硬件检修
  • 企业所得税计算方法公式
  • 企业报税流程图
  • 一种简单的快乐
  • 生产经营所得投资者减除费用季度申报填吗
  • 监控工程付款方式
  • php glob
  • win10远程桌面连接不成功
  • 苹果客服人工24小时
  • php read
  • 栖息在树林中
  • thinkphp demo
  • php7.3安装
  • 公司内部往来双向挂账
  • 转让固定资产使用权是出租吗
  • 会计上弥补亏损
  • 法人章两个字的怎么印
  • 货物出库入库怎么记账
  • mysql索引原理及慢查询优化
  • 经典帝国cms生成器下载
  • 建筑工程机械设备租赁属于什么行业
  • 金融资产经营资产
  • 实际已缴纳所得税额怎么填
  • 固定资产登记在三栏明细账可以吗
  • 资产现金流量收益率为什么不是净利润除以平均现金流量
  • 合同结算属于资产吗
  • 企业跨年度的收入退回应该如何进行会计处理?
  • 质量问题举例
  • 研究费用和开发费用加计扣除的究竟是哪部分
  • 小规模纳税人季报网上申报流程
  • 母子公司可以合并吗
  • 发票过账是什么意思
  • 其他资本公积是利得吗
  • 会计信息质量特征哪个最重要
  • microsoft onedrive怎么关闭
  • linux 的ll
  • spoolsrv.exe - spoolsrv是什么进程 有什么作用
  • iphone手机文件怎么传到电脑
  • linux如何安装wget命令
  • win8搜索不到自己家的WiFi
  • 搜狗浏览器2019版本
  • 作战仿真理论与技术
  • 下列有关javascript中call和apply
  • perl读取文件内容到数组
  • 使用androidx 找不到v7
  • java gravity
  • css position: absolute、relative详解
  • 批处理命令是什么语言
  • vue如何用
  • javascript+
  • json数据格式的理解
  • python 判断中文字符
  • 新疆干部在线网络平台登录
  • 深圳国税地税怎么申报
  • 金三申报系统里面怎么申报社保?
  • 财税〔2009〕61号
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设