Click on the banner to learn about and purchase my database training on Azure

Removing Number Formatting in PHP

Views: 2.762
Reading Time: <1 minute

Staff,
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?