位置: 编程技术 - 正文

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

  • 广州二手房交易契税
  • 小规模纳税人应交增值税明细科目
  • 纳税调整增加额在报表的哪里
  • 加计抵扣10%的进项税 会计处理
  • 国际税收协定是怎样避税的
  • 进项3个点销项13个点,增值税
  • 收到货款没开票做应收还还应付
  • 土地使用权摊销计入在建工程
  • 代扣代缴境外企业增值税
  • 购买土地自建厂房的会计处理
  • 单位车辆折旧完怎么处理
  • 发票上的税额和报税的数不一样,按照哪个报
  • 企业所得税收入大于增值税收入的原因
  • 地方教育费附加计入什么科目
  • 房产税免收范围包括
  • 未办理三证合一营业执照会注销吗
  • 耕地占用税和土地使用税的区别
  • 公司自用房屋怎样交税
  • 土地增值税清算时间
  • 公司收到个人投资款没有备注
  • 小规模纳税人销售自己使用过的固定资产税率
  • macOS 11 Big Sur beta 4值得升级吗?macOS 11 Big Sur beta 4更新详解
  • 内退人员
  • 投资性房地产减值准备属于什么科目
  • 一公顷等于多少千米
  • 我国关税税则设有
  • 购买股票会计分录怎么写
  • 增值税如何形成欠税
  • php获取数据
  • 会计政策变更常见例子
  • php实现分页显示
  • 现在用yii框架的人还多么
  • 土地转让注意事项有哪些
  • three.js gui
  • css详解
  • vue实现文件上传和下载
  • php curlfile
  • 应收账款未计提怎么处理
  • 销售产品的包装费
  • 服装、眼镜、鞋、西药的发票怎么样做账比较好
  • 如何用织梦在本地搭建网站
  • sql server恢复
  • mysql Event Scheduler: Failed to open table mysql.event
  • 企业取得交易性金融资产的主要目的是
  • 自制半成品怎么计算
  • 运输费用怎么计算
  • 培训费发票可以抵扣吗
  • 忘记报关可以补报吗
  • 建筑业异地预缴税款最新规定
  • 备查账簿有没有固定的格式
  • 企业建账要求
  • 私营公司无形资产怎么算
  • mysql有外键数据输入
  • 经典sql查询语句50条
  • windows后台启动VirtualBox虚拟机让界面不在出现
  • 怎么给网络设置防火墙
  • mac屏幕显示设置
  • linux 系统监控
  • centos禁止ip访问
  • excel 提示
  • windows8.1显卡驱动
  • win7 0x80070002处理方法
  • 虚拟光驱uiso
  • windows7无法关闭密码保护共享
  • win7怎样安装adb工具
  • cocos3.0
  • cocos2d js教程
  • 下列有关javascript中call和apply
  • 批处理作用
  • 搭建入门
  • .nodejs
  • unix linux
  • 菜鸟教程javaweb
  • javascript面向对象编程指南 pdf
  • jquery实现图片横向移动
  • 如何知道公司所有账户
  • 浙江省工会经费减免最新政策2019年
  • 临时占地耕地占用税纳税义务发生时间
  • 建安企业异地个税怎么交
  • 农产品进项税额核定扣除办法
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设