Rya*_*yan 1 php
我想要一种方法来检查数字是否有逗号,然后将其返回到下一个数字.
例如:
<? $mynum = "6265.50"; // output : 6266 , and not 6,266 like the function of number_format() ?>
谢谢
Sam*_*son 8
您可以使用round();或ceil()舍入分数.
round();
ceil()
归档时间:
16 年,5 月 前
查看次数:
113 次
最近记录: