位置: 编程技术 - 正文

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

  • 新办企业申请一般纳税人的资料
  • 主营业务利润和利润总额
  • 政府补贴的递延收益
  • 现金流是资产吗
  • 企业资产永久或实质性损害如何进行所得税处理
  • 公司债券投资的优缺点
  • 刷单成本计入什么费用?
  • 快递行业的收入与成本
  • 公司结业清算后多久注销
  • 企业将自用设备进行出租
  • 员工预借差旅费属于什么科目
  • 需要月报的税收项目
  • 个人所得税企事业单位承包经营所得
  • 居间费税收是多少
  • 中意装饰工程有限公司怎么样
  • 利息支出应计入
  • 非居民纳税人享受协定待遇办理方式
  • 库存股股本属于什么科目,借贷方向
  • 转让金融商品应交增值税怎么算
  • 收到办公室桶装水开的普票怎样入账?
  • 土地增值税计算例题
  • win10系统通知中心在哪
  • 怎么免费获取流量
  • 笔记本电脑如何恢复出厂系统
  • babel-plugin-import
  • 重装系统后软件打不开
  • 预交税款分录
  • 购销合同印花税计税依据
  • 住房公积金怎么补缴费
  • 置换土地如何做账务处理
  • 投资公司要具备什么
  • 发票怎么保管不会坏
  • 固定资产清理损失可以税前扣除吗
  • PHP:mcrypt_get_cipher_name()的用法_Mcrypt函数
  • php使用什么开发工具
  • 赠送客户商品分录
  • 累计税费怎么计算
  • unet bn
  • 帝国cms是基于什么的
  • js构造函数怎么用
  • 关于机动车的法律定义
  • 企业接受捐赠怎么入账
  • 注解@entity
  • 多付款退回怎样写说明
  • mysql外键约束的基本语法结构
  • SqlServer如何通过SQL语句获取处理器(CPU)、内存(Memory)、磁盘(Disk)以及操作系统相关信息
  • 纳税人申报的方法有哪些
  • 股东投资是否有资金实际收支活动?
  • 怎样识别真假增值税发票
  • 招待客人有什么讲究
  • 一般纳税人购入不动产增值税税率
  • 固定资产的入账价值包括进口关税吗
  • 药店医保收入如何查询
  • 支付劳务公司的劳务费如何扣缴个人所得税?
  • 商业保险的养老保险可靠吗
  • 企业所得税如何计算应纳税所得额
  • 土地使用权作为存货怎么入账
  • 机器折旧科目
  • 个税手续费返还奖励财务人员的文件
  • 在建工程的人工费会计分录
  • mac下安装python
  • win8开机提示激活
  • 如何解开win10电脑密码
  • windows注册表简单应用
  • Win7摄像头怎么打开
  • printnow.exe - printnow是什么进程 有什么作用
  • 修改linux启动项
  • win7怎么让系统更加快
  • linux ids
  • win10应用商店更新比蜗牛还慢
  • jquery实现select选择框内容左右移动代码分享
  • div的class有空格
  • 基于javascript的论文题目
  • shell正则表达式语法
  • jquery常用操作
  • 石油类资源税税率是多少
  • 督查局工作怎么样
  • 湖州市2020年最低生活保障
  • 税务申报系统出现异常怎么办
  • 中国涉农金融体系包括哪些
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设