Floyd Baker <[EMAIL PROTECTED]> wrote:
> There's an extra '}' in the first example for a word wrap function,
> under string functions in the manual..
>
> I think I removed the right one but I'm still having trouble with it.
> Can someone else take a crack at it too?
>
I dont see any extra } what i see is:
$text = "The quick brown fox jumped over the lazy dog.";
$newtext = wordwrap( $text, 20 );
echo "$newtext\n";
a note for wordwrap is if you use if for wrapping in html you might
want to do something like this, to split every line with a <br>:
wordwrap($text, 20, "<br>");
--
Henrik Hansen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]