How to remove commas from php numbers
This article mainly explains "how to remove commas from php numbers". The explanation in the article is simple and clear, easy to learn and understand. Please follow the editor's train of thought to study and learn "how to remove commas from php numbers".
This article operating environment: windows7 system, PHP7.1 version, DELL G3 computer
How to remove commas from php numbers?
Example of the first method:
Echo str_replace ("," 10000000000.00 ")
Output:
10000000000.00
The str_replace () function replaces some characters in the string with other characters (case sensitive).
Example of the second method: