print wordwrap($s,50,"\n\n");
Four score and seven years ago our fathers brought
forth on this continent a new nation, conceived in
liberty and dedicated to the proposition that all
men are created equal.
There is an optional fourth argument to wordwrap(
) that controls the treatment of words that are longer than
the specified line length. If this argument is 1, these words are
wrapped. Otherwise, they span past the specified line length:
print wordwrap('jabberwocky',5);
print wordwrap('jabberwocky',5,"\n",1);
jabberwocky
jabbe
rwock
y