Removing Number Formatting in PHP

Views: 2.404
Reading Time: <1 minute

Good day.

I am bringing you another useful function on a daily basis, which removes number formatting, causing “R $ 1.487.257,55” to become a string in the form of a float, that is, “1487257.55” .

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

To use the function is very simple:

Simple, no?