Re: wordwrap not working
| From: | Steven Walker | Date: | Thu, 21 Feb 2002 03:36:43 +0000 |
| Subject: | Re: wordwrap not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85670@lists.php.net to get a copy of this message | ||
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
steve@walkereffects.com
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