3
I have the variable $valor
who returns me
10,00
Needed to format this number to
10.00
In place of the comma ,
stitch .
I tried to use the function number_format($valor, 2, '.', '')
but it’s making a mistake and I can’t.
Someone has a solution?
Error found:
"A non well formed numeric value encountered in line 15 "
Possible duplicate of Comma calculation in PHP
– Daniel Omine