Removing Number Formatting in PHP

Views: 2.347
Reading Time: <1 minute

Staff,
Good day.

I'm bringing you one more useful day-to-day function, which removes number formatting, causing “R $ 1.487.257,55” to become a string with a float format, ie “1487257.55”.

For that, I created the class clsText and the function removeFormatNumber:

To use the function is very simple:

Simple, no?