开发者

need smarty function, it will change digit to words

开发者 https://www.devze.com 2023-02-01 02:44 出处:网络
I need to display digit as a word in smarty, ie., In PHP I pass the value $Rank = 2 to samrty by $smarty->assign(\'Rank\', $Rank);

I need to display digit as a word in smarty,

ie.,

In PHP I pass the value $Rank = 2 to samrty 
by
$smarty->assign('Rank', $Rank);

Then, it will be display in samrty as "two".

Any inbuilt function is there?

开发者_Python百科Thanks


There is no function for this. Though it would be pretty easy to make one.

http://www.smarty.net/docsv2/en/plugins.tpl

0

精彩评论

暂无评论...
验证码 换一张
取 消