babadbee babadbee - 1 year ago 234
Smarty Question

Formatting numbers with thousands separator Smarty PHP

Im trying to format numbers with thousands separator Smarty.

So for example 1000 becomes 1,000.


Answer Source

or you can use php function inside smarty, this is for number_format, you can use other php function too :)

PHP : number_format($number, 2, '.', ',');

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download