Re: Line feeds and WRAP="soft" TEXTAREA element
| From: | Michael Reynolds | Date: | Fri, 31 May 2002 03:36:14 +0000 |
| Subject: | Re: Line feeds and WRAP="soft" TEXTAREA element | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-14035@lists.php.net to get a copy of this message | ||
--- Michael Reynolds <wshs_chat@yahoo.com> wrote:
>
> --- Matt Babineau <matt@criticalcode.com> wrote:
> > Is there any way to detect linefeeds and replace them with <BR> for
> > output in html?
> >
>
> $data=explode("\n",$data);
> foreach ($data as $line) {
> print($data."<br>\n");
(oops) replace that with:
print($line."<br>\n");
> }
> $data=implode("\n",$data);
>
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com