Functions:wordwrap

From Dwoo Docs

Jump to: navigation, search

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
Personal tools
templates
page language

French

The article you want to access doesn't exist in French.
Deutsch
The article you want to access doesn't exist in Deutsch.
Russian
The article you want to access doesn't exist in Russian.