February 2013
Intermediate to advanced
538 pages
20h 55m
English
wordwrap
string wordwrap(stringstring[, intlength[, stringpostfix[, boolforce]]])
Inserts postfix into
string every
length characters and at the end of the
string and returns the resulting string. While inserting breaks, the
function attempts to not break in the middle of a word. If not
specified, postfix defaults to \n and size
defaults to 75. If
force is given and is true, the string is always wrapped to the
given length (this makes the function behave the same as chunk_split()).
Read now
Unlock full access