Functions:wordwrap
From Dwoo Docs
Wraps a text at the given line length
wordwrap(string $value, [ int $length = 80, [ string $break = "\n", [ bool $cut = false ]]])
- value : the text to wrap
- length : maximum line length
- break : the character(s) to use to break the line
- cut : if true, the line is cut at the exact length instead of breaking at the nearest space
Example:
{wordwrap "abcdefghijklmnopqrstuvwxyz" 8 cut=true}
Output:
abcdefgh ijklmnop qrstuvwx yz




