fenom/docs/ru/mods/join.md
2014-08-06 21:36:11 +04:00

16 lines
438 B
Markdown
Raw 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
```