1 2 3 4 5 6 7 8 9 10 | <?php $str = "40,420.05"; $num = str_replace( ',', '', $str); if( is_numeric($num)) { echo $num."\n"; } ?> |
1 2 3 | 40420.05 |
1 2 3 4 5 6 7 8 9 10 | <?php $str = "40,420.05"; $num = str_replace( ',', '', $str); if( is_numeric($num)) { echo $num."\n"; } ?> |
1 2 3 | 40420.05 |
Add Comment