RE: [PHP] wordwrap not working
| From: | Joel Boonstra | Date: | Thu, 21 Feb 2002 03:37:01 +0000 |
| Subject: | RE: [PHP] wordwrap not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-85669@lists.php.net to get a copy of this message | ||
> If your viewing the output through a browser, try this;
>
> <?
> $text = "The quick brown fox jumped over the lazy dog.";
> $newtext = wordwrap( $text, 20, "<br>");
> echo "$newtext\n";
> ?>
Ah, this is a better solution than mine -- I didn't know wordwrap had the
3rd (and 4th) parameters till now.
Joel
--
[ joel boonstra | jboonstra@gospelcom.net ]