fenom/docs/ru/mods/join.md

16 lines
438 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Модификатор split
==============
Объединяет элементы массива в строку.
```
{$array|join:$delimiter = ","}
```
Объединяет элементы массива с помощью строки `$delimiter`.
```smarty
{var $fruits1 = ["banana", "apple", "pear"]}
{$fruits1|join} выведет banana, apple, pear
{$fruits1|join:" is not "} выведет banana is not apple is not pear
```