[EMAIL PROTECTED] (Tyler Longren) wrote:

 > Maybe I'm not using it right, but I'm using the sample in the manual.
 > Here's the code:
 > <?
 > $text = "A very long woooooooooooord.";
 > $newtext = wordwrap( $text, 8, "\n", 1);
 > echo "$newtext\n";
 > ?>

you should use 
$newtext = wordwrap( $text, 8, "<br>", 1);

instead of

$newtext = wordwrap( $text, 8, "\n", 1);

because \n is not visiable printed in a browser but <br> is

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]

Reply via email to