位置: 编程技术 - 正文

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

  • 增值税销项税额账务处理
  • 房产赠与税什么时候开始的
  • 出口退税货物的进项税处理
  • 应付职工薪酬和工资总额的区别
  • 一般纳税人需要缴纳哪些税种
  • 外国公司开发古镇
  • 房地产开发企业土地增值税清算
  • 合伙企业借款利息收入个税
  • 增值税专用发票几个点
  • 建筑施工企业收到工程款会计分录
  • 长期挂账的应付账款如何写申请报告
  • 未开业零升报企业是否做年度汇算清缴申报
  • 存在商业折扣的情况下,应收账款按什么金额入账?
  • 一般纳税人如何抵扣进项税
  • 民办美术高中有哪些
  • 对外投资所得税计算公式
  • 不含税销售收入含消费税吗
  • 向金融企业借款利息支出可以税前扣除吗
  • 补记固定资产
  • 软件公司购进软件会计科目
  • 房地产企业作为甲方开票给施工单位
  • 开水电发票要增加什么经营项目?
  • 国家认定的高新技术企业是什么意思
  • 税号里的字母是什么
  • 企业所得税退税会计分录
  • 残保金属于职工薪酬吗
  • 物流公司转包出售合法吗
  • 净资产收益率公式怎么算出来的
  • 忘了结转成本怎么办
  • 加工费的增值税计入什么科目
  • 个人独资企业查账征收个人所得税汇算清缴
  • pos机刷卡手续费谁承担
  • 工会经费怎么申报,多久报一次
  • 积分抵现金活动怎么做
  • deepin安装windows字体
  • 如何在win7系统中查看电脑基本信息
  • 房产证工本费怎么做账
  • 销售折让负数会计分录
  • 加工费入什么会计科目
  • php的教程
  • 政府机关出租房屋要交税吗
  • sigmoid函数求导表达式
  • php socket编程
  • 企业废品处理管理办法
  • 什么情况下可以土葬
  • 微信小程序做ppt
  • js点击li
  • 上海广为
  • 中国版ChatGPT即将来袭-国内版ChatGPT入口
  • 自营与代理
  • 固定资产的特征有哪些
  • php运行乱码怎么办
  • 准则对()、()和()等作出基本规定
  • 网银可以给个人转账
  • 小规模纳税人企业所得税怎么算
  • 季度缴纳房租申请怎么写
  • 承租方承担的税费有哪些
  • 受托代销商品款是什么意思
  • 只有进项税额没有销项税额怎么结转
  • 利润太高,如何调产品收发存
  • 购买债券的交易费计入什么科目
  • 管理费用如何分摊到项目
  • 什么是小规模纳税人2023
  • 私营公司预收账款怎么算
  • 私营企业固定资产法律制度
  • 电脑开机密码忘记了怎么打开
  • 电脑系统信息怎么关闭
  • win8如何卸载360安全卫士?
  • cocos creator js教程
  • android开发环境的搭建步骤
  • php运行linux命令
  • dos 浏览器
  • JavaScript事件代理和委托详解
  • js动态生成页面
  • 批处理应用实例
  • javascript module
  • python 连接符
  • layout_gravity与gravity的区别
  • 专项扣除赡养老人是什么意思
  • 神马电力几号发行
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设