I'm having problems with the number_format
function of PHP, since my numeral comes from the database with two points, eg:
1.235.32
I'm using number_format
this way:
number_format(floatval('1.235.32'), 2, ',', '.');
And it turns out this:
1.22
I need my result to be formatted like this:
1235.32