-
- 46 Posts
I’m not a PHP programmer, so am struggling to find a custom PHX modifier to format a number output in groups of thousands, e.g. 100,000. I need to insert a comma inbetween every group of 3 digits if it’s not already there.
This is for an estate agent’s site so prices are in 100’s of thousands and millions. If they enter the price into the price TV without any commas or with a decimal place, I want to format it correctly, i.e. 1250000.99 becomes 1,250,000
Does anyone have the solution?
I really appreciate any help with this!
Learning a little more each day.