公告
财富商城
积分规则
提问
发文
2020-02-17 09:16发布
够拽才男人
Im trying to format numbers with thousands separator Smarty.
So for example 1000 becomes 1,000.
Thanks.
or just in smarty use {$var|number_format:0}
{$var|number_format:0}
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, '.', ','); SMARTY : {$number|number_format:2:".":","}
Try to use string_format, it uses sprintf to format your string.
最多设置5个标签!
or just in smarty use
{$var|number_format:0}
or you can use php function inside smarty, this is for number_format, you can use other php function too :)
Try to use string_format, it uses sprintf to format your string.