位置: 编程技术 - 正文

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

  • 所得税税前扣除凭证管理办法
  • 账面价值大于计税基础是什么差异
  • 小规模纳税人为什么没有进项
  • 发票税率开错了3%开成5%怎么办
  • 哪些科目月底需要结转
  • 未担保余值列报
  • 高速公路上的机电一体化有哪些
  • 已认证的发票如何冲红步骤
  • 工商年报的应交税费包含哪些
  • 上年度亏损用什么弥补
  • 交易性金融资产的入账价值
  • 负债与递延收益的区别
  • 上年度重复结转会计分录
  • 行政单位维修工程规定
  • 公司法人要交什么税
  • 全年一次性奖金计税方式2023
  • 对公业务指什么
  • 购买税控盘的钱能全额抵扣增值税吗
  • 企业如何实现资源共享
  • 残障人士能享受的税收优惠
  • 新金融工具准则投资收益
  • 咨询费如何入账
  • 机关党建经费提取比例
  • windows11安装后卡顿
  • 缴纳人身意外保险凭证是什么
  • 华为matex3爆料
  • vmware10怎么安装
  • 大额医疗救助金怎么申请
  • 信息化生产力是指什么
  • 定额发票收入
  • MacOS Big Sur 11.3网页怎么设置时间限制?
  • php字符串赋值
  • 政策性搬迁补偿收入如何财税处理
  • php ftp函数
  • 股票收益的计算公式
  • 同业代付融资
  • 其他应收款期末贷方余额表示什么
  • 萤火虫发光器的用途
  • 顺流交易逆流交易区别
  • vue的一些面试题
  • ChatGPT中国电话不能注册
  • openssl 加密套件
  • mysql的间隙锁与排他锁
  • 成本票和费用票一样吗
  • 公司法人代表能考公务员吗
  • 会计损益类科目核算
  • 关于实收资本的表述中,不正确的是
  • 包装物为什么是无菌的
  • 应收的货款
  • 所得税汇算会计处理
  • 终止合约要赔钱吗
  • 信息技术服务费怎么做会计分录
  • sqlserver2008导出表结构和表数据
  • 缴纳上月应交未交税费
  • 市政绿化工程的施工方案
  • 普通发票的开具是?
  • 可供出售金融资产现在叫什么
  • 以前年度损益调整是什么意思
  • 事业单位库存物品
  • 盈余公积的用途主要是
  • 增值税年末结转的会计处理
  • 暂估成本以后也没有票回来了
  • 自营工程领用自产产品的处理
  • 电子记录表怎么填写
  • 发票可以冲销几次
  • mysql索引类型及原理
  • xp系统无法更换桌面壁纸
  • win10 mobile 1709
  • windows7开机显示错误恢复进不去
  • win8怎么改系统
  • shell脚本case语句判断成绩
  • unity游戏官网
  • My Magic Android Tour —— 处女作
  • jquery-validation
  • nodejs实现微信公众号发红包
  • node.js 配置
  • js判断用户输入密码
  • perl vs python
  • fragment详解
  • 庐山坐缆车上去后还要买门票吗?
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设