Re: How to wrap output of formatted text
| From: | CC Zona | Date: | Tue, 27 Feb 2001 08:45:22 +0000 |
| Subject: | Re: How to wrap output of formatted text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41812@lists.php.net to get a copy of this message | ||
In article <05d201c0a069$4877e0c0$0400000a@gdd.net>,
cdukes@cdukes.com ("Clayton Dukes") wrote:
> $row = mysql fetch array($sth);
>
> if ($row[0] != "") {
> echo $row[0];
>
> prints the data, but some of the results are long strings of text that don't
> wrap in the browser, how can I force them to wrap at the edge of the browser?
You already discovered the wordwrap() solution. The html solution looks
like this:
if ($row[0] != "") {
echo "<p>$row[0]</p>";
Cheers!
--
CC