xxxxxxxxxx
$var = 2,356.002;
$var_formatted = floatval(preg_replace('/[^\d.]/', '', $var));
xxxxxxxxxx
$val = "1,4552.35";
$val = str_replace(',', '', $val);
echo $val;
//Output will be 14552.35
This will remove comma(,) from the string and echo the output