开发者

PHP - Get rid of notation

开发者 https://www.devze.com 2023-03-18 08:38 出处:网络
I have a very large number here but I cannot get rid of the notation. I want it to display only numbers instead of

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.8357开发者_运维百科032784585E+24 - 77"

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


Use number_format.

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号