| Recommend this page to a friend! |
| Packages of Michael Beck | Xoops 2.5 | htdocs/xoops_lib/vendor/smarty/smarty/docs/designers/language-modifiers/language-modifier-wordwrap.md | Download |
|
|||||||||||||||||||||
wordwrapWraps a string to a column width, the default is 80. As an optional
second parameter, you can specify a string of text to wrap the text to
the next line, the default is a carriage return Basic usage
Parameters| Parameter Position | Type | Required | Default | Description | |--------------------|---------|----------|---------|-----------------------------------------------------------------------------------------------| | 1 | integer | No | 80 | This determines how many columns to wrap to. | | 2 | string | No | \\n | This is the string used to wrap words with. | | 3 | boolean | No | FALSE | This determines whether to wrap at a word boundary (FALSE), or at the exact character (TRUE). | Examples
Where template is
Will output:
See also |