标签: php
我想以正常数字转换这样的数字
1,200.00 -> 1200 100.00 -> 100 1,000.00 -> 1000 1,345,490.00 -> 1345490
有没有办法做到这一点?用PHP
答案 0 :(得分:0)
怎么样:
$number = (int)strtr($string, array("," => "", " " => ""));