March 2002
Intermediate to advanced
528 pages
21h 29m
English
wordwrap
string wordwrap(stringstring[, intsize[, stringpostfix[, intforce]]])
Inserts postfix into
string every
size 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
\r\n and size defaults
to 76. 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( )).