I'm using setlocale
so that php returns the name of the month in PT-BR. The problem is that it is affecting the system calculations. Php is putting a comma at the point link.
setlocale(LC_ALL, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese');
date_default_timezone_set('America/Sao_Paulo');
echo strftime('%b', strtotime("-1 month"));
echo "<br><br>";
echo 123.33 - 111.11;
In the example I posted it returns me:
Mai
12,22
Being that he has to return me:
Mai
12.22
How do I resolve this?