PHP - Get rid of notation

三世轮回 提交于 2019-11-27 08:10:15

问题


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"

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


回答1:


Use number_format.

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


来源:https://stackoverflow.com/questions/6639096/php-get-rid-of-notation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!