位置: 编程技术 - 正文

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

  • 未交增值税借贷方负数表示
  • 商会费用会计分录
  • 上个月结余应该做到这个月收入里面吗
  • 房屋出租收到的租金会计分录
  • 计提应收的增值税返还
  • 净现值率和现值指数之间的关系
  • 累计所得税前净现金流量计算公式为
  • 一般纳税人进项税额怎么算
  • 经营结余年末结转
  • 账户未认证
  • 工程款发票开给委托方要如何处理?
  • 事业单位其他收入的会计分录
  • 清单申报和专项申报的区别
  • 增值税纳税申报表怎么填
  • 暂估入库的材料需要做T型账户嘛?
  • 以后年度继续扣除广告宣传费,要怎么写分录?
  • 企业转让二手房增值税
  • 股权转让印花税税率是多少
  • 外国常驻代表机构经费支出
  • 小规模保安公司收取服务费时如何开票
  • 遗失发票如何处理好
  • PHP:oci_set_module_name()的用法_Oracle函数
  • 上年费用未计提
  • php连接mysql查询数据
  • PHP:mb_preferred_mime_name()的用法_mbstring函数
  • 个人如何办理住房贷款
  • 企业发生的哪些费用可以结转
  • 月度计提所得税怎么调整
  • 销售方收到购买方的红字信息表
  • 魅族路由器mini padavan
  • 个人所得税必须交吗
  • 马尼亚岛的降水特点
  • 在Win2003(64位)中配置IIS6+PHP5.2.17+MySQL5.5的运行环境
  • spring bootcsdn
  • 应交税费应交增值税销项税额
  • 简单易学的前端框架
  • 损益类科目增加记借方吗
  • 如何根据营业执照核定税种
  • 存货成本核算方法有哪些
  • 预算会计年末怎么结账
  • sqlserver2008安装教程(超完整)
  • 公对公开税票流程
  • 一般纳税人转小规模纳税人的条件
  • 增资减资改变股东要交税吗
  • 代销手续费怎么做账
  • 财产租赁合同印花税率多少
  • 非独立核算的分公司可以开基本户吗
  • 发票保管应由谁保管
  • 个人银行帐户可以代理销户吗?
  • 开发票时如何添加商品编码?
  • 总分类账的记账
  • 外贸整个流程图
  • windows自带截图软件
  • win2000系统安装教程
  • centos7关闭kdump
  • win7修改系统版本
  • linux svn操作
  • 什么是bash命令
  • windows7调制解调器在在哪里打开
  • WIN XP下VMware Tools(虚拟机)安装的详细方法(图文教程)
  • xp系统电脑开机密码忘记了
  • mac安装dw
  • win7清洗打印机喷头步骤
  • visual studio 无法编译
  • javascript怎么学
  • 控制角色一致性的5个方法
  • opengl1
  • jquery转dom
  • 实用的批处理
  • 用批处理结束进程
  • [置顶]JM259194
  • 安卓压缩图片
  • listview subitems
  • 新浪微博手机客户端下载
  • android 内部存储
  • 地税税号查询系统
  • 公务员考试税局
  • 福建生育登记证明电子版在哪查
  • 商铺转让要交哪些税费和费用
  • 出口突尼斯提供哪些清关单据
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设