The number: 100000000000.00
Should look like: 100,000,000,000.00
I tried the below:
Code: Select all
$num= 100000000000.00;
$num= regexreplace ($num, "(-?[0-9]+)([0-9]{3})","$1,$2");
Any help?
PS: Meanwhile I am using the code 4 times in a row to achieve what i want.
XYplorer Beta Club