Word Wrapping
| From: | Tom Ray [Lists] | Date: | Sun, 25 May 2003 02:37:52 +0000 |
| Subject: | Word Wrapping | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148888@lists.php.net to get a copy of this message | ||
I'm fighting with wordwrap() and it appears I'm losing.
Example:
$text = "A very long, long, long line. This is a long long long line, very very very very very very long";
$newtext = wordwrap($text, 20);
print '"$text";
It doesn't wrap anything. The output is still the same as in $text. Anyone know what I'm missing here. I've even tried
$newtext = wordwrap($text, 20, "'\n", 1); and still nothing.
TIA