note 11812 added to function.wordwrap.php
| From: | boing at boing dot com | Date: | Thu, 08 Mar 2001 08:48:00 +0000 |
| Subject: | note 11812 added to function.wordwrap.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-12028@lists.php.net to get a copy of this message | ||
Try this code. It seems that with the newlines after the hey hey hey and the ee that the wordwrap
function seems to count the newline as a character in it's computation of the line lenght.
Which really messes up imp's wraping, I think. Am I missing something? You might want to pre
the output to make it more readable.
$txt = "blah blah blah hey hey hey\nkeep going on the moving on like no way mand jaksdjasasas
kdf asfio uwoae a d
ee\n e e e r t t y y :skladjfasdfksdj kf ";
print wordwrap ($txt, 80);
http://www.php.net/manual/en/function.wordwrap.php