note 11812 deleted from function.wordwrap by jimw
| From: | jimw@php.net | Date: | Fri, 14 Dec 2001 20:38:24 +0000 |
| Subject: | note 11812 deleted from function.wordwrap by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22770@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);