Good evening guys.
I have this function to convert American value to Brazilian
function Real($valor){
$valor_real = number_format($valor,2, ',', '.');
return $valor_real;
}
It works fine, but it will display houses with thousands Ex. 1,250.00 it displays only 1,00
Can you help me?
I call the function this way
R$ <?=Real($lnP['produto_atributo_preco']); ?>
In mysql the field is as DECIMAL (10,2) was as VARCHAR and even then it has this error
Thank you