如何用COMMA替换DOT? [英] How to replace DOT by COMMA?

查看:179
本文介绍了如何用COMMA替换DOT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码

展开 | 选择 | Wrap | 行号

解决方案

使用 number_format

展开 | 选择 | Wrap | 行号


该代码非常奇怪...当您的号码在任何时候都不是字符串时,它会将您的号码看作一个字符串。你会想要使用number_format()来替换round()和strpos()同时使用。


我也使用了这个代码,但是它不起作用:(

i have the following code

Expand|Select|Wrap|Line Numbers

解决方案

Use number_format.

Expand|Select|Wrap|Line Numbers


That code is very odd... It looks at your number as a string when your number is not a string at any point. You''ll want to use number_format() to replace the round() and the strpos() use simultaneously.


i have use this code too but its not working :(


这篇关于如何用COMMA替换DOT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆