Remove last cooma in FOREACH loop
-
How do I drop the last comma in a FOREACH loop? Also, if there is only one item in the list – I don’t want a comma after it, either. Thanks!
[FOREACH({book[1]/book_title})]<a href="/tags/{@tags}" title="{.}">{.}</a>, [ENDFOREACH]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Remove last cooma in FOREACH loop’ is closed to new replies.