I created a function cotacaoDolar();
which returns at the end:
return str_replace(",",".",$texto_dolar);
And the result appears here:
echo $i['sellingStatus'][0]['currentPrice'][0]['__value__'] * cotacaoDolar();
How do I format the value ( ['_ value _'] ) quoted above?
You're like this: R$ 271.309389 ou R$ 1119.2445
The right one would be: R$ 271,30 ou R$ 1.119,24