8 lines
114 B
PHP
8 lines
114 B
PHP
|
<?php
|
||
|
$str1 = "2,543.12";
|
||
|
$x = str_replace( ',', '', $str1);
|
||
|
if( is_numeric($x))
|
||
|
{
|
||
|
echo $x."\n";
|
||
|
}
|
||
|
?>
|