This may be a nl2br() problem. If you are setting \n as your newline 
character, it probably needs to be <br> if your just echoing it. 
Depending on where it ultimately gets displayed, you'll want one or the 
other. For example, sending an email message you want \n.

Steven J. Walker
Walker Effects
www.walkereffects.com
[EMAIL PROTECTED]

On Wednesday, February 20, 2002, at 07:25  PM, Michael P. Carel wrote:

>
> Hi,
>
> Im testing the example in the
> http://www.php.net/manual/en/function.wordwrap.php and it seems not 
> working
> it still printing the whole word and not wrapping. Im using php4.05 in 
> my
> redhat 6.2 using an apache.
> Here's the sample:
> <?
> $text = "The quick brown fox jumped over the lazy dog.";
> $newtext = wordwrap( $text, 20 );
>
> echo "$newtext\n";
> ?>
>
> it should print like this:
>
> The quick brown fox
> jumped over the lazy dog.
>
> but it still printing like this:
>
> The quick brown fox jumped over the lazy dog.
>
>
>
> Please help
>
>
>
> Regards,
> Mike
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to