Re: Word Wrapping

From: Date: Sun, 25 May 2003 02:40:09 +0000
Subject: Re: Word Wrapping
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148889@lists.php.net to get a copy of this message
It really is $newtext = wordwrap($text, 20, "\n", 1); In my frustration I double hit the key. Tom Ray [Lists] wrote:
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


« previous php.general (#148889) next »