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

后端 未结 1 913
春和景丽
春和景丽 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)
提交回复
热议问题