位置: 编程技术 - 正文

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

  • 加计扣除填不了
  • 我国税收居民
  • 城市维护建设税优惠政策
  • 提存金属于职工薪酬吗
  • 新会计准则施行
  • 如何进行无形资产核算
  • 我国现行资源税的课税范围不包括
  • 物业公司可以开什么项目的发票
  • 过节发什么物资给员工好些
  • 小规模购买金税盘可以全额抵扣吗
  • 扶贫算出差吗
  • 以前年度不合规发票怎么处理
  • 异地设立分公司可以独立核算吗
  • 专票开票出框可以改吗
  • 营改增怎么还有机打发票吗
  • 浅析税收滞纳金问题的政策法规
  • 预提费用多少
  • 异常抵扣凭证进项税转出入哪个所属期
  • 企业研发人员数量在哪里查
  • 母子公司之间的借款利息支出增值税能否抵扣
  • 工商年报人数是12月人数吗
  • 建筑公司收到的劳务费怎么做账
  • 代扣代缴的增值税可以作为进项税抵扣吗
  • 常见的无线网络技术有
  • 提供建筑安装服务
  • 操作系统的安全目标主要包括哪些?
  • 其他暂收应付款项有哪些
  • ireike.exe - ireike是什么进程 有什么作用
  • 税务的基本职能
  • avoid什么用法
  • php打包网站并在哪里打开
  • php获取网页所有页数
  • 黑色金属冶炼压延品的税收编码是多少
  • elementui 手机端
  • vue从入门到精通教程
  • 微软回应
  • c语音进阶
  • php文件夹下所有文件下载
  • 注销企业账面大量现金如何处理
  • 付了工资的资产负债表怎么填
  • mysql存储引擎有哪些区别
  • 结转全年利润总额
  • 计提减值准备是利空吗
  • 跨年费用账务处理
  • 税金及附加里面包含什么
  • 出口退税指的是什么意思
  • 个体工商户法人可以变更吗?
  • 支付大型设备税率是多少
  • 农产品免税收入需要缴纳所得税吗
  • 明细账分类账登记
  • 房地产预售款预交税金计算
  • 全额工资和实发工资
  • 以现金支付现金股票增值权属于经营活动吗
  • 职工教育经费可以结转几年继续抵扣吗
  • 工程结算科目是一级科目吗?
  • mysql2002解决办法
  • wrsvn.exe是什么
  • win7开机taskeng
  • win10系统便签突然无法打开
  • Ubuntu远程桌面连接
  • hkcmd是什么进程
  • xp系统几位操作系统
  • win7插u盘电脑没反应怎么回事
  • linux服务器dns配置安装
  • cocos2d动画
  • unity软件设计
  • three. js
  • linux shell在while中用read从键盘输入的实现
  • opengl光照算法
  • js脚本使用
  • js怎么操作css
  • shell脚本-p
  • 充电显示调整差额是什么意思
  • js键盘事件有哪些?各自的作用如何
  • jquery实现全选全不选
  • 河南省电子税务局官网入口
  • 广东省电子税务局电话
  • 税务评定等级a是缴纳多少
  • 陕西税务纳税服务平台
  • 补充协议交印花税嘛
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设