fenom/docs/en/mods/length.md

10 lines
223 B
Markdown
Raw Normal View History

2014-01-29 12:01:31 +04:00
Modifier length
===============
2014-01-29 12:01:31 +04:00
The modifier returns the number of items of a sequence or mapping, or the length of a string (works with UTF8 without `mbstring`)
2014-01-29 12:01:31 +04:00
```smarty
{if $images|length > 5}
to many images
{/if}
```