I have this code to give $value
a number format:
$value=1000000.00;
number_format($value,2);
echo str_replace(",", "", $value)
But when I try to replace the comma, the decimals get removed. I want to print $value
as it originally was: 1000000.00
. How can I do that?