位置: 编程技术 - 正文

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

  • 增值税发票选择确认平台是什么?
  • 出差补贴没有发票怎么做账
  • 销售人员购买的产品
  • 关联企业利息
  • 个人到税务局开增值税专用发票
  • 不征税收入怎么申报企业所得税
  • 企业提供建筑服务,应向建筑服务发生地
  • 会计凭证 借贷
  • 部分红冲的发票无法勾选怎么办
  • 定额备用金补付会计分录怎么写?
  • 简单征收的进项税额怎么调出来?
  • 什么情况下是应收账款
  • 领导报销发票挂哪个科目
  • 金税盘最高限额怎么修改
  • 已认证的发票没领怎么办
  • 虚开发票可以做进项税额转出分录吗?
  • 税控盘维护费抵减分录
  • 一般纳税人未达到起征点要交税吗
  • 建筑业分包抵扣
  • 电子发票怎么作废操作流程视频
  • 本月开了负数发票怎么开
  • 三险一金专项扣除怎么查
  • 律师费能计入办公费用吗
  • 主板bios在线升级
  • linux abi
  • php中??
  • 复制粘贴如何提取文字
  • win10系统安装详细步骤
  • 发生销售折让怎么办
  • 高新技术企业取消资格怎么处罚
  • 深入理解php内核
  • PHP:imagepsslantfont()的用法_GD库图像处理函数
  • 开具增值税发票哪些情形不用交税?
  • 商业承兑汇票贴现
  • 小微企业报税后多久缴税
  • 增值税检查的内容
  • 丑八怪 英文
  • 浏览器同源策略限制
  • thinkphp extend
  • 图像分割csdn
  • 变量与数据
  • vgextend命令作用及含义
  • php魔术方法功能与用法实例分析
  • reset=target
  • 利息收入的会计科目怎么做
  • 销售费用进项税额转出会计分录怎么写
  • 香港企业的所得税怎么算
  • 健身房注册公司名称带超字
  • 员工出国公司要承担的责任
  • phpcms数据库文件
  • 帝国cms真的很好用
  • 支付长期借款利息时,应借记什么账户
  • 暂估成本多了
  • 商品进销差价在借方还是贷方
  • 收到质量赔款涉税处理
  • 应付职工薪酬包含哪些科目
  • 一般纳税人退税条件
  • 员工在异地缴纳社保,公司还能上吗
  • 研发支出费用化和资本化的界定
  • 分公司办事处需要什么手续
  • 化肥贸易行业
  • 超市代销如何分成
  • 什么是现金流量表
  • 企业其他应收款余额非常大的原因
  • 商品销售成本的计算可以采用逆算成本法,其操作方法是
  • win7鼠标右键没有压缩文件
  • WinXP巧用Netsh工具快速填写IP参数
  • win7系统安装的配置要求有什么
  • linux命令行怎么用
  • ubuntu怎么将文件传送到电脑
  • javascriptz
  • 批处理替换文件中的某个内容
  • unity3d模型怎么制作
  • android长按app快捷功能
  • python中读取文件
  • jqueryui dialog
  • centos7如何安装
  • 乌市社保缴费一个月多少钱
  • 石脑油的消费税是多少
  • 税务总局电子申报软件怎么用
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设