How to convert an array into comma separated strings in smarty template?

后端 未结 1 914
春和景丽
春和景丽 2020-12-30 01:57

I\'ve an array titled $preview_data assigned to smarty template as follows:

Array
(
  [applicable_states] => Array
        (
            [0]          


        
1条回答
  •  南笙
    南笙 (楼主)
    2020-12-30 02:05

    Try this:

    {', '|implode:$preview_data.applicable_states}
    

    It will give you what you are expecting. Cheers!!!

    0 讨论(0)
提交回复
热议问题