Get the App
SLTechnology News&Howtos  ›  Development  › 

How to remove commas from php numbers

Shulou Source: shulou.com Published: 2022-06-03 19:27:23 11月12日 Update

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:

Tags: Numbers commas functions characters learning content methods examples output three two parameters size string that is ideas situations articles more format Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker Xiaomi OPPO Reno Shulou Information