PHP - 摆脱符号 [英] PHP - Get rid of notation

查看:120
本文介绍了PHP - 摆脱符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我这里有一个非常大的数字,但我无法摆脱这种表示法。我希望它只显示数字而不是
4.8357032784585E + 24 - 77

I have a very large number here but I cannot get rid of the notation. I want it to display only numbers instead of "4.8357032784585E+24 - 77"

我试过(int)$ variable但它没有帮助。建议?

I tried (int)$variable but it didn't help. Suggestions?

推荐答案

使用 number_format

echo number_format($variable, 0, '.', '');

这篇关于PHP - 摆脱符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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